From dd44477f20c5eb071566a8517d62f3adf9bcb2ed Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 25 Jan 2023 06:02:22 +0100 Subject: [PATCH] Update 00-global_var.sh --- .templates/00-global_var.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index ee075c638..f2b2ed3d5 100755 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -22,7 +22,7 @@ for KEYS in "${arr[@]}"; do secret=${line#*secret } # Check if single match secretnum=$(sed -n "/$secret:/=" /config/secrets.yaml) - [[ $(echo $secretnum) == *' '* ]] && bashio::exit.nok "There are multiple matches for your password name. Please check your secrets.yaml file" + [[ "$secretnum" == *' '* ]] && bashio::exit.nok "There are multiple matches for your password name. Please check your secrets.yaml file" # Get text secret=$(sed -n "/$secret:/p" /config/secrets.yaml) secret=${secret#*: }