From f9a0dc44d38e04d2f8fbcd517d6c202682e896c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 1 Nov 2017 09:03:33 +0200 Subject: [PATCH] Use type -p instead of which --- wait-for-it.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wait-for-it.sh b/wait-for-it.sh index bbe4043..5cef902 100755 --- a/wait-for-it.sh +++ b/wait-for-it.sh @@ -142,8 +142,7 @@ CHILD=${CHILD:-0} QUIET=${QUIET:-0} # check to see if timeout is from busybox? -# check to see if timeout is from busybox? -TIMEOUT_PATH=$(realpath $(which timeout)) +TIMEOUT_PATH=$(realpath $(type -p timeout)) if [[ $TIMEOUT_PATH =~ "busybox" ]]; then ISBUSY=1 BUSYTIMEFLAG="-t"