Update 99-run.sh

This commit is contained in:
Alexandre
2021-12-02 17:15:02 +01:00
committed by GitHub
parent 986b3f6be6
commit c777ac6c95

View File

@@ -74,7 +74,10 @@ do
echo "line : $line"
secret=${line#*secret }
echo "secret : $secret"
secret=$(sed -n "/$secret/p" /config/secrets.yaml)
# 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" && continue
# Get text
secret=$(sed -n "/$secret:/=" /config/secrets.yaml)
echo "secret : $secret"
secret=${secret#*: }
echo "secret : $secret"