diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index 4227c0b3e..a226a16cc 100644 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -180,8 +180,8 @@ while IFS= read -r line; do # extract keys and values KEYS="${line%%=*}" VALUE="${line#*=}" - if [[ "$VALUE" == *\"* ]]; then - [[ "$VALUE" == \"*\" ]] && VALUE="${VALUE:1:-1}" + if [[ "$VALUE" == \"*\"*\" ]]; then + VALUE="${VALUE:1:-1}" VALUE="'$VALUE'" fi export "${KEYS}=${VALUE}"