Update 99-run.sh

This commit is contained in:
Alexandre
2021-12-02 23:19:24 +01:00
committed by GitHub
parent 5024bddd84
commit 62f44e27cd

View File

@@ -75,7 +75,7 @@ do
secret=${line#*secret }
# Check if single match
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
[[ $(echo $secretnum) == *' '* ]] && bashio::log.fatal "There are multiple matches for your password name. Please check your secrets.yaml file" && bashio::exit.nok
# Get text
secret=$(sed -n "/$secret:/p" /config/secrets.yaml)
secret=${secret#*: }
@@ -87,7 +87,7 @@ do
bashio::log.blue "$line"
else
bashio::log.fatal "$line does not follow the structure KEY=text"
bashio::addon.stop
bashio::exit.nok
fi
done < "/tmpfile"