Merge pull request #379 from juergenhoetzel/dont-use-non-posix-which

Use POSIX "command" instead of non-standard "which"
This commit is contained in:
Julius Volz 2016-12-21 22:22:29 +01:00 committed by GitHub
commit 296d7fdd2e
1 changed files with 2 additions and 2 deletions

View File

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