X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fedit_course.sh;h=c1deb5a622f0fa85673b8005071408871e4667f4;hp=67e051173189afd5856258a9811ac36c27fb2911;hb=4e49d483fd5121fda86a33cf583c15afa6556ad1;hpb=fd8bfb7fa37228c2c75d896124c99a4518e93b1e diff --git a/templates/edit_course.sh b/templates/edit_course.sh index 67e0511..c1deb5a 100755 --- a/templates/edit_course.sh +++ b/templates/edit_course.sh @@ -83,18 +83,17 @@ 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 '' 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 '
'