Skip to content

Commit

Permalink
🚑 Fixes net.wait_for to be compatible with Busybox 1.30+
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Jun 20, 2019
1 parent fd4d77b commit ebb9ece
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ bashio::net.wait_for() {
local host=${2:-'localhost'}
local timeout=${3:-60}
local timeout_argument=""
local timeout_path

bashio::log.trace "${FUNCNAME[0]}" "$@"

timeout_path=$(command -v timeout)
if [[ "$(realpath "${timeout_path}")" =~ "busybox" ]]; then
if timeout -t 1337 true > /dev/null 2>&1; then
timeout_argument="-t"
fi

Expand Down

0 comments on commit ebb9ece

Please sign in to comment.