mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 20:11:24 +00:00
🚑 Fix to exit the add-on if we run into timeout (#22)
This commit is contained in:
parent
035a3c6dc7
commit
d4d6ab8136
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ bashio::net.wait_for() {
|
|||
timeout ${timeout_argument} "${timeout}" \
|
||||
bash -c \
|
||||
"until echo > /dev/tcp/${host}/${port} ; do sleep 0.5; done" \
|
||||
> /dev/null 2>&1;
|
||||
> /dev/null 2>&1 || true;
|
||||
|
||||
return "${__BASHIO_EXIT_OK}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue