Update 99-run.sh

This commit is contained in:
Alexandre
2021-12-02 14:54:42 +01:00
committed by GitHub
parent ffc91d27e6
commit 266f997f8b

View File

@@ -71,16 +71,10 @@ do
line=${line//[\"\']/} line=${line//[\"\']/}
# Check if secret # Check if secret
if [[ "${line}" == *'!secret '* ]]; then if [[ "${line}" == *'!secret '* ]]; then
echo "secret detected"
secret=${line#*secret } secret=${line#*secret }
echo $secret secret=$(sed "/$secret/\!d" /config/secrets.yaml)
secret=$(sed "/$secret/!d" /config/secrets.yaml)
echo $secret
secret=${secret#*: } secret=${secret#*: }
echo $secret
line="${line%%=*}=$secret" line="${line%%=*}=$secret"
echo $line
echo "end of secret script"
fi fi
# Data validation # Data validation
if [[ $line =~ ^.+[=].+$ ]]; then if [[ $line =~ ^.+[=].+$ ]]; then