From d4d6ab813673957d2680020ea30c37e6780f9a7f Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 20 Feb 2020 19:05:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20to=20exit=20the=20add-on?= =?UTF-8?q?=20if=20we=20run=20into=20timeout=20(#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/net.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net.sh b/lib/net.sh index 4e5730b..e636ad8 100644 --- a/lib/net.sh +++ b/lib/net.sh @@ -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}" }