From e75e5879c0e8d232a2e8f045685beeb8c965aba4 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sun, 6 Dec 2015 14:03:35 +0100 Subject: replace "which" with "command -v" for portability which is a debian specific tool packaged in debianutils (essential) while command is a shell builtin defined by POSIX. Closes: 807144 Thanks: Mingye Wang for the suggestion. --- test/integration/framework | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/integration/framework b/test/integration/framework index 3e159f6a9..8760f3db8 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -1205,7 +1205,7 @@ changetowebserver() { } changetohttpswebserver() { - if ! which stunnel4 >/dev/null; then + if ! command -v stunnel4 >/dev/null 2>&1; then msgdie 'You need to install stunnel4 for https testcases' fi if [ ! -e "${TMPWORKINGDIRECTORY}/aptarchive/aptwebserver.pid" ]; then -- cgit v1.2.3