Use type -p instead of which
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user