diff --git a/src/backupninja.in b/src/backupninja.in index 75d017e677c0fb13ca4e15c6e5777b71aff2e304..90ac64e4faa4e9bf106464a26e7f581f024465b0 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -253,12 +253,12 @@ function isnow() { warning "The 'when' variable in the configuration file is malformed. You either didn't specify the day or the time. Please read the README for examples." return 0 fi - + if [ "$at" != "at" ]; then warning "The 'when' option in the configuration doesn't contain an 'at'. Please read the README for examples." return 0 fi - + if [[ "$whentimeoriginal" != @([0-9][0-9])?(:[0-9][0-9]) ]]; then warning "The time in the 'when' option in the configuration is malformed. Please read the README for examples." return 0