Skip to content

Commit

Permalink
int-log-compiler-common.sh: Remove dependency on which
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
  • Loading branch information
salahcoronya authored and AndreasFuchsTPM committed May 10, 2024
1 parent a90e7f6 commit 40e2dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/int-log-compiler-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40e2dc7

Please sign in to comment.