From 5024bddd8472e79efbd51881a88f4d0e5f1ba097 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 2 Dec 2021 23:09:02 +0100 Subject: [PATCH] Update 99-run.sh --- gazpar2mqtt/rootfs/scripts/99-run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gazpar2mqtt/rootfs/scripts/99-run.sh b/gazpar2mqtt/rootfs/scripts/99-run.sh index 640e10ba7..326ff9776 100644 --- a/gazpar2mqtt/rootfs/scripts/99-run.sh +++ b/gazpar2mqtt/rootfs/scripts/99-run.sh @@ -74,7 +74,8 @@ do echo "secret detected" secret=${line#*secret } # Check if single match - [[ "$(sed -n "/$secret:/=" /config/secrets.yaml)" == *' '* ]] && bashio::log.fatal "There are multiple matches for your password name. Please check your secrets.yaml file" && bashio::addon.stop + 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 # Get text secret=$(sed -n "/$secret:/p" /config/secrets.yaml) secret=${secret#*: }