diff --git a/.templates/01-config_yaml.sh b/.templates/01-config_yaml.sh index 3af0293ec..7d6f443ec 100644 --- a/.templates/01-config_yaml.sh +++ b/.templates/01-config_yaml.sh @@ -75,8 +75,8 @@ dq_escape() { while IFS= read -r LINE; do [[ -z "$LINE" || "$LINE" != *=* ]] && continue # Escape special characters not within single quotes - LINE=$(sed -E "s/([^'])([][\$\`\"\\!&;|<>])/\1\\\\\\2/g" <<< "$LINE") - KEY="${LINE%%=*}" + LINE=$(sed -E "s/([^'])([][\$\`\"\\!&;|<>])/\1\\\\\\2/g" <<<"$LINE") + KEY="${LINE%%=*}" VALUE="${LINE#*=}" # !secret handling if [[ "$VALUE" =~ ^!secret[[:space:]]+(.+) ]]; then