From: paul Date: Fri, 4 Nov 2016 13:22:35 +0000 (+0000) Subject: syntax cleanup X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=3b300b0aa4e096f13cdc157b9c703b42d838b23b;p=lobster syntax cleanup svn path=/trunk/; revision=134 --- diff --git a/actions/generate_courselist.sh b/actions/generate_courselist.sh index 97589ee..71eb80a 100755 --- a/actions/generate_courselist.sh +++ b/actions/generate_courselist.sh @@ -19,8 +19,8 @@ pdflatex="$(where pdflatex |head -n1 || echo false)" course="${_GET[course]}" -fromdate=$_GET[fromdate] -fromdate=$(date -d "$fromdate" +%s) +fromdate="${_GET[fromdate]}" +fromdate="$(date -d "$fromdate" +%s)" 2>/dev/null [ -z "$fromdate" ] && fromdate=$(date +%s) . ${_EXEC}/pages/courses.sh @@ -124,7 +124,7 @@ get_dates() { #Parameter: Calendarfile rrule="$values[RRULE]" rr_int="$(echo $rrule |sed -rn 's:^.*INTERVAL=([0-9]+)(;.*)?$:\1:p')" rr_freq="$(echo $rrule |sed -rn 's:^.*FREQ=(YEARLY|MONTHLY|WEEKLY|DAILY)(;.*)?$:\1:p')" - case "$rr_freq" in; + case "$rr_freq" in YEARLY) rec="$rr_int year";; MONTHLY) rec="$rr_int month";; DAILY) rec="$rr_int day";;