From fd37ab58109351a89ff9fcd65edd09486eb221c4 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Apr 16 2019 15:03:11 +0000 Subject: use command instead of which. this is more portable and doesn\'t require another dep --- diff --git a/get_sources.sh b/get_sources.sh index 44ef936..247c43e 100755 --- a/get_sources.sh +++ b/get_sources.sh @@ -102,13 +102,13 @@ else QUIET='' fi -which git >/dev/null 2>&1 +command -v git >/dev/null 2>&1 if [[ $? -ne 0 ]]; then echo 'You need git in PATH' >&2 exit 1 fi -which curl >/dev/null 2>&1 +command -v curl >/dev/null 2>&1 if [[ $? -ne 0 ]]; then echo 'You need curl in PATH' >&2 exit 1