diff options
author | Micah Anderson <micah@riseup.net> | 2009-12-02 17:09:16 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-02 17:09:16 -0500 |
commit | 34d0d30593e09a6d0af06e2f201b879cc391c6af (patch) | |
tree | db8815069c417246d4e35309b07349fbd2b9e174 /handlers/rsync.in | |
parent | f9672647177f771270f40a858fb94283ff1ebcdf (diff) | |
download | backupninja-34d0d30593e09a6d0af06e2f201b879cc391c6af.tar.gz backupninja-34d0d30593e09a6d0af06e2f201b879cc391c6af.tar.bz2 |
adjust the comparison operators in the rsync handler, fixes #1473
Diffstat (limited to 'handlers/rsync.in')
-rw-r--r-- | handlers/rsync.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in index 829f148..9e04efe 100644 --- a/handlers/rsync.in +++ b/handlers/rsync.in @@ -306,7 +306,7 @@ function rotate_short { local keep="$2" local metadata="`dirname $folder`/metadata" - if [[ "$keep" < 4 ]]; then + if [[ "$keep" -lt 4 ]]; then error "Rotate: minimum of 4 rotations" exit 1 fi @@ -341,7 +341,7 @@ function rotate_short_remote { local metadata="`dirname $folder`/metadata" local keep="$2" - if [[ "$2" < 4 ]]; then + if [[ "$2" -lt 4 ]]; then error "Rotate: minimum of 4 rotations" exit 1 fi |