From 92ea3e159947f8289b3c63a012eb6aa3c80c7597 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Wed, 21 Dec 2016 19:00:38 +0100 Subject: [PATCH] Use POSIX "command" instead of non-standard "which" --- end-to-end-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/end-to-end-test.sh b/end-to-end-test.sh index e68fd2ac..3faf104f 100755 --- a/end-to-end-test.sh +++ b/end-to-end-test.sh @@ -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