use command instead of which. this is more portable and doesn\'t require another dep

This commit is contained in:
Brian Stinson 2019-04-16 10:03:11 -05:00
parent 3382beadcc
commit fd37ab5810

View file

@ -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