diff --git a/scripts/build.sh b/scripts/build.sh index ac3a5dbac..e16152e6f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -13,8 +13,7 @@ set -e function validateToolPresence { local TOOLNAME=$1 - which ${TOOLNAME} >/dev/null - if [ $? -ne 0 ]; then + if ! which ${TOOLNAME} >/dev/null; then echo "${TOOLNAME} is not on the path. Exiting..." exit 1 fi