diff --git a/lizardfs/lizsrdfs-snapshots.sh b/lizardfs/lizsrdfs-snapshots.sh index f1196cf..7ff279b 100755 --- a/lizardfs/lizsrdfs-snapshots.sh +++ b/lizardfs/lizsrdfs-snapshots.sh @@ -99,7 +99,7 @@ if test -z "${DESTINATION}"; then echo "ERROR: no destination specified, try $0 --help" 1>&2 exit 1 fi -if $dryrun -eq 0 && ! ( test -d "${DESTINATION}" || mkdir -p "${DESTINATION}" ); then +if test "$dryrun" -eq 0 && ! ( test -d "${DESTINATION}" || mkdir -p "${DESTINATION}" ); then echo "ERROR: cannot create destination path '$DESTINATION', try $0 --help" 1>&2 exit 1 fi