Skip to content

Commit

Permalink
add double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Aug 26, 2024
1 parent dc65b62 commit aa378a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zfs-replicate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ snapSend() {
checkLock "$TMPDIR/.replicate.send.lock"
## create initial send command based on arguments
## if first snap name is not empty generate an incremental
if [ ${RECURSE_CHILDREN} -eq 1 ]; then
if [ "$RECURSE_CHILDREN" -eq 1 ]; then
args="-R"
elif [ ${RECURSE_CHILDREN} -eq 0 ]; then
elif [ "$RECURSE_CHILDREN" -eq 0 ]; then
args=""
elif [ -n "$base" ] && [ ${RECURSE_CHILDREN} -eq 1 ]; then
elif [ -n "$base" ] && [ "$RECURSE_CHILDREN" -eq 1 ]; then
args="-R -I $base"
elif [ -n "$base" ] && [ ${RECURSE_CHILDREN} -eq 0 ]; then
elif [ -n "$base" ] && [ "$RECURSE_CHILDREN" -eq 0 ]; then
args="-I $base"
fi
## set the command prefix based on source host
Expand Down

0 comments on commit aa378a3

Please sign in to comment.