diff --git a/ttcn3-dumpcap-start.sh b/ttcn3-dumpcap-start.sh index 3aec9b99a..eb390fddb 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 0ce07cd5a..8433c80c5 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