]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress:: fix custom option in simple-test
authorAlain Spineux <alain@baculasystems.com>
Fri, 3 Jun 2022 10:00:45 +0000 (12:00 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
regress/tests/simple-test

index 02c0268ebf3451531788fc80d9bb65d663c08571..7b520bb88abe29569323991e893895cb1f5e2c1c 100755 (executable)
@@ -17,7 +17,7 @@ scripts/cleanup
 scripts/copy-test-confs
 echo "${cwd}/build" >${cwd}/tmp/file-list
 
-if [ -n $CUSTOM ] ; then
+if [ -n "$CUSTOM" ] ; then
    dd if=/dev/urandom of=$tmp/random-data bs=1M count=10
    echo "$tmp/random-data" >${cwd}/tmp/file-list
 fi
@@ -50,5 +50,5 @@ run_bacula
 check_for_zombie_jobs storage=File
 stop_bacula
 check_two_logs
-[ -n $CUSTOM ] || check_restore_diff
+[ -n "$CUSTOM" ] || check_restore_diff
 end_test