Skip to content
Snippets Groups Projects
Commit 4d0a46be authored by Douglas Gibbons's avatar Douglas Gibbons
Browse files

Merge branch 'scop-deps'

parents db049716 019f3bb5
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# Use this script to test if a given TCP host/port are available
cmdname=$(basename $0)
cmdname=${0##*/}
echoerr() { if [[ $QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
......@@ -142,8 +142,8 @@ 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=$(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