Update 00-global_var.sh

This commit is contained in:
Alexandre
2023-01-25 06:02:22 +01:00
committed by GitHub
parent 7cc1afd85d
commit dd44477f20

View File

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