Skip to content
Snippets Groups Projects
Commit 019f3bb5 authored by Ville Skyttä's avatar Ville Skyttä
Browse files

Fall back to readlink -f if realpath is not available or fails

parent 5fe30e7a
Branches
Tags
No related merge requests found
......@@ -142,7 +142,8 @@ CHILD=${CHILD:-0}
QUIET=${QUIET:-0}
# check to see if timeout is from busybox?
TIMEOUT_PATH=$(realpath $(type -p timeout))
TIMEOUT_PATH=$(type -p timeout)
TIMEOUT_PATH=$(realpath $TIMEOUT_PATH 2>/dev/null || readlink -f $TIMEOUT_PATH)
if [[ $TIMEOUT_PATH =~ "busybox" ]]; then
ISBUSY=1
BUSYTIMEFLAG="-t"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment