]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix the if statements in posix sh env 2190/head
authorShaojing Li <shaojing@fb.com>
Wed, 3 Jun 2020 18:36:38 +0000 (11:36 -0700)
committerShaojing Li <shaojing@fb.com>
Wed, 3 Jun 2020 18:36:38 +0000 (11:36 -0700)
tests/playTests.sh

index b17ce14b991b689dc58eeb5746467a737d38912a..20bdc3492a96428b75c52d3836996fcebbbc78bd 100755 (executable)
@@ -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