projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f967264
)
adjust the comparison operators in the rsync handler, fixes #1473
author
Micah Anderson
<micah@riseup.net>
Wed, 2 Dec 2009 22:09:16 +0000
(17:09 -0500)
committer
Micah Anderson
<micah@riseup.net>
Wed, 2 Dec 2009 22:09:16 +0000
(17:09 -0500)
handlers/rsync.in
patch
|
blob
|
history
diff --git
a/handlers/rsync.in
b/handlers/rsync.in
index 829f148c3bcbda59a2d2ea69e2cebfeec878056f..9e04efeab518f55cdb9e7498419f8d6a9aeb1f5c 100644
(file)
--- 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