summaryrefslogtreecommitdiffstats
path: root/start-testsuite.sh
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-18 15:22:20 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-18 15:22:39 +0100
commitae5791defdc8b3a6fbf09304fff1e3ff421c8379 (patch)
treedc985f45e60e743660038519cc7db69d1ba2a831 /start-testsuite.sh
parentb537461a9c58fd5222d209e810d32b56a3afb8bc (diff)
start-testsuite.sh: Use shellcheck to harden script
Diffstat (limited to 'start-testsuite.sh')
-rwxr-xr-xstart-testsuite.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/start-testsuite.sh b/start-testsuite.sh
index 83c381e..61bf771 100755
--- a/start-testsuite.sh
+++ b/start-testsuite.sh
@@ -10,7 +10,7 @@ if [ $# -lt 1 ]; then
fi
SUITE=$1
-CFG=`basename $SUITE`.cfg
+CFG=$(basename "$SUITE").cfg
if [ $# -gt 1 ]; then
CFG=$2
fi
@@ -19,4 +19,4 @@ if [ $# -gt 2 ]; then
TEST=$3
fi
-LD_LIBRARY_PATH=`dirname $SUITE`:/usr/lib/titan:/usr/ttcn3/lib ttcn3_start $SUITE $CFG $TEST
+LD_LIBRARY_PATH=$(dirname "$SUITE"):/usr/lib/titan:/usr/ttcn3/lib ttcn3_start "$SUITE" "$CFG" "$TEST"