]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Fix warning in tests/bscan-plugin-objects-test
authorEric Bollengier <eric@baculasystems.com>
Wed, 23 Mar 2022 14:52:02 +0000 (15:52 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:28 +0000 (09:03 +0100)
regress/tests/bscan-plugin-objects-test

index c16863f2f93feb89295b34aa5d11ca7874fb6e3a..c767c59d63bb27bb8c647133a444efcc03b2c464 100755 (executable)
@@ -145,7 +145,7 @@ run_bconsole
 
 # Check if there are no duplicates
 objs_after_bscan=`cat tmp/objs_count_double_bscan | grep '|' | cut -d'|' -f2 | tail -1`
-if [ ${objs_after_bscan} -ne ${objs_orig} ]; then
+if [ "${objs_after_bscan}" -ne "${objs_orig}" ]; then
     print_debug "ERROR: Running bscan twice produced some duplicates of plugin objects. \
                  Original count: ${objs_orig}, after second bscan: ${objs_after_bscan}"
     bstat=1