X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_course.sh;h=6da1579c3bc2ca826a2b94d1abd21ae7164c2737;hp=67e051173189afd5856258a9811ac36c27fb2911;hb=81c946c0b8fbbaeb0fde535d127eb3f8979fb701;hpb=fd8bfb7fa37228c2c75d896124c99a4518e93b1e
diff --git a/templates/edit_course.sh b/templates/edit_course.sh
index 67e0511..6da1579 100755
--- a/templates/edit_course.sh
+++ b/templates/edit_course.sh
@@ -83,18 +83,24 @@ done
echo ' '
echo ' '
for wd in mon tue wed thu fri sat sun; do
- echo ' '$(date -d $wd +%a)''
+ echo -n ''$(date -d $wd +%a)''
done
fdom=$(date -d ${dts_year}-${dts_month}-1 +%u)
while [ "$fdom" -gt 1 ]; do
- echo ' '
+ echo -n ''
fdom=$(($fdom - 1))
done
-echo ''
+#echo -n ''
+#cnt=$(date -d ${dts_year}-${dts_month}-1 +%s)
+#while [ "$(date -d @$cnt +%m)" = "$dts_month" ]; do
+# dn=$(date -d @$cnt +%d)
+# echo -n ''
+# cnt=$(($cnt + 86400))
+#done
cnt=$(date -d ${dts_year}-${dts_month}-1 +%s)
while [ "$(date -d @$cnt +%m)" = "$dts_month" ]; do
dn=$(date -d @$cnt +%d)
- echo ' '
+ echo -n ''
cnt=$(($cnt + 86400))
done
echo '
'