From: Shaojing Li Date: Wed, 3 Jun 2020 18:36:38 +0000 (-0700) Subject: fix the if statements in posix sh env X-Git-Tag: v1.4.7~142^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=847349195fb0c1e4d0356afa003d7d3963e733af;p=thirdparty%2Fzstd.git fix the if statements in posix sh env --- diff --git a/tests/playTests.sh b/tests/playTests.sh index b17ce14b9..20bdc3492 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -130,13 +130,13 @@ esac # check if ZSTD_BIN is defined. if not, use the default value -if [[ -z "${ZSTD_BIN}" ]]; then +if [ -z "${ZSTD_BIN}" ]; then println "\nZSTD_BIN is not set. Using the default value..." ZSTD_BIN="$PRGDIR/zstd" fi # check if DATAGEN_BIN is defined. if not, use the default value -if [[ -z "${DATAGEN_BIN}" ]]; then +if [ -z "${DATAGEN_BIN}" ]; then println "\nDATAGEN_BIN is not set. Using the default value..." DATAGEN_BIN="$TESTDIR/datagen" fi