🚑 Fix to exit the add-on if we run into timeout (#22)

This commit is contained in:
Pascal Vizeli 2020-02-20 19:05:35 +01:00 committed by GitHub
parent 035a3c6dc7
commit d4d6ab8136
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ bashio::net.wait_for() {
timeout ${timeout_argument} "${timeout}" \ timeout ${timeout_argument} "${timeout}" \
bash -c \ bash -c \
"until echo > /dev/tcp/${host}/${port} ; do sleep 0.5; done" \ "until echo > /dev/tcp/${host}/${port} ; do sleep 0.5; done" \
> /dev/null 2>&1; > /dev/null 2>&1 || true;
return "${__BASHIO_EXIT_OK}" return "${__BASHIO_EXIT_OK}"
} }