Skip to content
Snippets Groups Projects
Commit 34d0d305 authored by micah's avatar micah :speech_balloon:
Browse files

adjust the comparison operators in the rsync handler, fixes #1473

parent f9672647
Branches
Tags
No related merge requests found
...@@ -306,7 +306,7 @@ function rotate_short { ...@@ -306,7 +306,7 @@ function rotate_short {
local keep="$2" local keep="$2"
local metadata="`dirname $folder`/metadata" local metadata="`dirname $folder`/metadata"
if [[ "$keep" < 4 ]]; then if [[ "$keep" -lt 4 ]]; then
error "Rotate: minimum of 4 rotations" error "Rotate: minimum of 4 rotations"
exit 1 exit 1
fi fi
...@@ -341,7 +341,7 @@ function rotate_short_remote { ...@@ -341,7 +341,7 @@ function rotate_short_remote {
local metadata="`dirname $folder`/metadata" local metadata="`dirname $folder`/metadata"
local keep="$2" local keep="$2"
if [[ "$2" < 4 ]]; then if [[ "$2" -lt 4 ]]; then
error "Rotate: minimum of 4 rotations" error "Rotate: minimum of 4 rotations"
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment