mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 12:01:25 +00:00
🚑 Fixes net.wait_for to be compatible with Busybox 1.30+
This commit is contained in:
parent
fd4d77bef2
commit
ebb9ece766
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue