Use type -p instead of which

This commit is contained in:
Ville Skyttä
2017-11-01 09:03:33 +02:00
parent db049716e4
commit f9a0dc44d3

View File

@ -142,8 +142,7 @@ CHILD=${CHILD:-0}
QUIET=${QUIET:-0} QUIET=${QUIET:-0}
# check to see if timeout is from busybox? # check to see if timeout is from busybox?
# check to see if timeout is from busybox? TIMEOUT_PATH=$(realpath $(type -p timeout))
TIMEOUT_PATH=$(realpath $(which timeout))
if [[ $TIMEOUT_PATH =~ "busybox" ]]; then if [[ $TIMEOUT_PATH =~ "busybox" ]]; then
ISBUSY=1 ISBUSY=1
BUSYTIMEFLAG="-t" BUSYTIMEFLAG="-t"