add missing quotes to shell scripts
authorDenis Ovsienko <denis@ovsienko.info>
Thu, 7 Mar 2019 12:28:01 +0000 (12:28 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Thu, 7 Mar 2019 12:29:25 +0000 (12:29 +0000)
Issue spotted by Mark Brugnoli-Vinten.

tests/express.sh
tests/express_phpunit.sh
tests/express_post.sh
tests/express_pre.sh
tests/travis_setup_mysql.sh

index d66eb24..958003b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-THISDIR=`dirname $0`
+THISDIR=`dirname "$0"`
 BASEDIR=`readlink -f "$THISDIR/.."`
 : ${PHPUNIT_BIN:=phpunit}
 
index 73386a1..4f0791d 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-THISDIR=`dirname $0`
+THISDIR=`dirname "$0"`
 : ${PHPUNIT_BIN:=phpunit}
 
 case `"$PHPUNIT_BIN" --version` in
index eec874f..25487c5 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-THISDIR=`dirname $0`
+THISDIR=`dirname "$0"`
 BASEDIR=`readlink -f "$THISDIR/.."`
 
 echo "Running post-PHPUnit express tests using the base directory '$BASEDIR'."
index 3e53624..f4aa306 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-THISDIR=`dirname $0`
+THISDIR=`dirname "$0"`
 BASEDIR=`readlink -f "$THISDIR/.."`
 
 echo "Running pre-PHPUnit express tests using the base directory '$BASEDIR'."
index 24da256..3f14520 100755 (executable)
@@ -10,7 +10,7 @@ fi
 DBNAME="$1"
 USERNAME="$2"
 PASSWORD="$3"
-THISDIR=`dirname $0`
+THISDIR=`dirname "$0"`
 BASEDIR=`readlink -f "$THISDIR/.."`
 
 if mysql -u root -e "SHOW TABLES FROM $DBNAME" >/dev/null 2>&1; then