From: Jouni Malinen Date: Mon, 30 Dec 2024 16:55:34 +0000 (+0200) Subject: tests: Avoid which -s since not all which implementations have it X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e31e6f64e0f360725295ded2569d0b77e2c9e12;p=thirdparty%2Fhostap.git tests: Avoid which -s since not all which implementations have it Apparently it was too good to be true that one could have used which without having to direct stdout to /dev/null. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/stop.sh b/tests/hwsim/stop.sh index 514993c1b..4eef7bf1a 100755 --- a/tests/hwsim/stop.sh +++ b/tests/hwsim/stop.sh @@ -19,7 +19,7 @@ if grep -q hwsim0 /proc/net/dev; then fi if [ -e /tmp/hlr_auc_gw.sock ]; then - if which -s socat; then + if which socat > /dev/null; then echo TERMINATE | socat - UNIX-SENDTO:/tmp/hlr_auc_gw.sock sleep 0.1 fi