aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarehbein <arehbein@sysmocom.de>2022-11-02 00:48:32 +0100
committerarehbein <arehbein@sysmocom.de>2022-11-02 17:36:35 +0000
commita084fbe605aa85d31bb00c933c729c599331f50e (patch)
treeb4b570dcc08300a61e11a7cff2e9ba325ddff5e4
parent6ff06a301b015073929349cf9946057f7e17f5c3 (diff)
Fix missing quotes for possibly unresolved variables in shell test-statements
-rwxr-xr-xttcn3-dumpcap-start.sh2
-rwxr-xr-xttcn3-tcpdump-start.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/ttcn3-dumpcap-start.sh b/ttcn3-dumpcap-start.sh
index 3aec9b99..eb390fdd 100755
--- a/ttcn3-dumpcap-start.sh
+++ b/ttcn3-dumpcap-start.sh
@@ -30,7 +30,7 @@ fi
kill_rm_pidfile $PIDFILE_NETCAT
kill_rm_pidfile $PIDFILE_PCAP
-if [ ! -x $DUMPCAP ]; then
+if [ ! -x "$DUMPCAP" ]; then
echo "Missing required dumpcap binary at ${DUMPCAP}"
exit 31
fi
diff --git a/ttcn3-tcpdump-start.sh b/ttcn3-tcpdump-start.sh
index 0ce07cd5..8433c80c 100755
--- a/ttcn3-tcpdump-start.sh
+++ b/ttcn3-tcpdump-start.sh
@@ -35,7 +35,7 @@ else
CMD="sudo $TCPDUMP -U"
fi
-if [ -x $DUMPCAP ]; then
+if [ -x "$DUMPCAP" ]; then
CAP_ERR="1"
if [ -x /sbin/setcap ]; then
# N. B: this check requires libcap2-bin package