Use type -p instead of which

pull/48/head
Ville Skyttä 7 years ago
parent db049716e4
commit f9a0dc44d3

@ -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"

Loading…
Cancel
Save