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#*: }