Use POSIX "command" instead of non-standard "which"

pull/379/head
Juergen Hoetzel 2016-12-21 19:00:38 +01:00
parent e681dcc296
commit 92ea3e1599
1 changed files with 2 additions and 2 deletions

View File

@ -100,10 +100,10 @@ EOF
trap finish EXIT
get() {
if which curl > /dev/null 2>&1
if command -v curl > /dev/null 2>&1
then
curl -s -f "$@"
elif which wget > /dev/null 2>&1
elif command -v wget > /dev/null 2>&1
then
wget -O - "$@"
else