]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: fix syntax error in all-tape-tests script
authorKern Sibbald <kern@sibbald.com>
Sat, 16 Jun 2018 10:43:35 +0000 (12:43 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 16 Jun 2018 10:43:35 +0000 (12:43 +0200)
regress/all-tape-tests

index fd4fbffe6906d11571dbc4b2699bb749051bdd26..218e623109610053089bdd86029a206347f43138 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2000-2017 Kern Sibbald
+# Copyright (C) 2000-2018 Kern Sibbald
 # License: BSD 2-Clause; see file LICENSE-FOSS
 #
 # ./run all tape tests
@@ -11,7 +11,7 @@
 # If we have an autoloader, load the tape in slot1
 if test ! x$AUTOCHANGER = x/dev/null ; then
    a=`bin/mtx-changer $AUTOCHANGER loaded $SLOT1 $TAPE_DRIVE $DRIVE1`
-   if test $a = 0 ; then
+   if [ x$a = x0 ] ; then
       bin/mtx-changer $AUTOCHANGER load $SLOT1 $TAPE_DRIVE $DRIVE1
    fi
 fi