diff options
author | Elijah Saxon <elijah@riseup.net> | 2005-04-17 17:14:33 +0000 |
---|---|---|
committer | Elijah Saxon <elijah@riseup.net> | 2005-04-17 17:14:33 +0000 |
commit | 7691261c2d059ec04b8448410febde6ef214418d (patch) | |
tree | 07170e894bca871db3cfe09d6b01e0c6b9366ef5 /backupninja | |
parent | c7e96acc455c3b5c74f97e812072e1a55664adce (diff) | |
download | backupninja-7691261c2d059ec04b8448410febde6ef214418d.tar.gz backupninja-7691261c2d059ec04b8448410febde6ef214418d.tar.bz2 |
added 'daily', hours don't need 0 prefix.
Diffstat (limited to 'backupninja')
-rwxr-xr-x | backupninja | 4 |
1 files changed, 2 insertions, 2 deletions
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 |