From 62f44e27cd2f24ec20bef1c80263faa3c7c680e2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 2 Dec 2021 23:19:24 +0100 Subject: [PATCH] Update 99-run.sh --- gazpar2mqtt/rootfs/scripts/99-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazpar2mqtt/rootfs/scripts/99-run.sh b/gazpar2mqtt/rootfs/scripts/99-run.sh index 326ff9776..306977384 100644 --- a/gazpar2mqtt/rootfs/scripts/99-run.sh +++ b/gazpar2mqtt/rootfs/scripts/99-run.sh @@ -75,7 +75,7 @@ do secret=${line#*secret } # Check if single match secretnum=$(sed -n "/$secret:/=" /config/secrets.yaml) - [[ $(echo $secretnum) == *' '* ]] && bashio::log.fatal "There are multiple matches for your password name. Please check your secrets.yaml file" && bashio::addon.stop + [[ $(echo $secretnum) == *' '* ]] && bashio::log.fatal "There are multiple matches for your password name. Please check your secrets.yaml file" && bashio::exit.nok # Get text secret=$(sed -n "/$secret:/p" /config/secrets.yaml) secret=${secret#*: } @@ -87,7 +87,7 @@ do bashio::log.blue "$line" else bashio::log.fatal "$line does not follow the structure KEY=text" - bashio::addon.stop + bashio::exit.nok fi done < "/tmpfile"