X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=backupninja;h=a59d40067c9eafa3be4e183ee2d0f34ef2b34c9f;hp=3943724d3449c0ef12b02eaaf9fd7553c2522ac1;hb=7691261c2d059ec04b8448410febde6ef214418d;hpb=c7e96acc455c3b5c74f97e812072e1a55664adce diff --git a/backupninja b/backupninja index 3943724..a59d400 100755 --- a/backupninja +++ b/backupninja @@ -199,9 +199,9 @@ function isnow() { whendayofweek=$1; at=$2; whentime=$3; whenday=`toint "$whendayofweek"` whendayofweek=`tolower "$whendayofweek"` - whentime=`echo "$whentime" | sed 's/:[0-9][0-9]$//'` + whentime=`echo "$whentime" | sed 's/:[0-9][0-9]$//' | sed -r 's/^([0-9])$/0\1/'` - if [ "$whendayofweek" == "everyday" ]; then + if [ "$whendayofweek" == "everyday" -o "$whendayofweek" == "daily" ]; then whendayofweek=$nowdayofweek fi