Skip to content
Snippets Groups Projects
Commit 582024f4 authored by Emil Breiner's avatar Emil Breiner
Browse files

Quoting test of $create_options in borg handler


The check for the string length in the condition for appending the $create_options fails because it isn't a string. Fixed with quoting the variable.

Change-Id: I6bdacb81f25cf924dc61e3aa6f4b8ebfbe09da65
Signed-Off-By: default avatarEmil Breiner <emil.breiner@krumedia.com>
parent ab8d5a3a
Branches
Tags
1 merge request!39Quoting test of $create_options in borg handler
...@@ -140,7 +140,7 @@ if [ ! -z $bwlimit ]; then ...@@ -140,7 +140,7 @@ if [ ! -z $bwlimit ]; then
execstr="${execstr} --remote-ratelimit=${bwlimit}" execstr="${execstr} --remote-ratelimit=${bwlimit}"
fi fi
if [ ! -z $create_options ]; then if [ ! -z "$create_options" ]; then
execstr="${execstr} ${create_options}" execstr="${execstr} ${create_options}"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment