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//[\"\']/}
# Check if secret
if [[ "${line}" == *'!secret '* ]]; then
echo "secret detected"
secret=${line#*secret }
echo $secret
secret=$(sed "/$secret/!d" /config/secrets.yaml)
echo $secret
secret=$(sed "/$secret/\!d" /config/secrets.yaml)
secret=${secret#*: }
echo $secret
line="${line%%=*}=$secret"
echo $line
echo "end of secret script"
fi
# Data validation
if [[ $line =~ ^.+[=].+$ ]]; then