From: Kern Sibbald Date: Sat, 16 Jun 2018 10:43:35 +0000 (+0200) Subject: regress: fix syntax error in all-tape-tests script X-Git-Tag: Release-9.2.0~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f40d7d3c8e3035ebeda00c6043a714fe5eb29f9;p=thirdparty%2Fbacula.git regress: fix syntax error in all-tape-tests script --- diff --git a/regress/all-tape-tests b/regress/all-tape-tests index fd4fbffe69..218e623109 100755 --- a/regress/all-tape-tests +++ b/regress/all-tape-tests @@ -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