From 40e2dc78c7c02c87e2def38fa66974bba0c7e573 Mon Sep 17 00:00:00 2001 From: Christopher Byrne Date: Fri, 3 May 2024 10:30:34 -0500 Subject: [PATCH] int-log-compiler-common.sh: Remove dependency on which Signed-off-by: Christopher Byrne --- script/int-log-compiler-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/int-log-compiler-common.sh b/script/int-log-compiler-common.sh index 5d0b3b954..16ab8d4a5 100755 --- a/script/int-log-compiler-common.sh +++ b/script/int-log-compiler-common.sh @@ -55,12 +55,12 @@ sanity_test () exit 1 fi - if [ -z "$(which ${sock_tool})" ]; then + if ! command -v ${sock_tool} > /dev/null ; then echo "ss not on PATH; exiting" exit 1 fi - if [[ ! -z ${simulator_bin} && -z "$(which ${simulator_bin})" ]]; then + if [[ ! -z ${simulator_bin} && -z "$(command -v ${simulator_bin})" ]]; then echo "${simulator_bin} not on PATH; exiting" exit 1 fi