Update 01-config_yaml.sh

This commit is contained in:
Alexandre
2025-07-06 07:42:24 +02:00
committed by GitHub
parent 35c5303b07
commit d81331adc2

View File

@@ -74,7 +74,9 @@ dq_escape() {
while IFS= read -r LINE; do
[[ -z "$LINE" || "$LINE" != *=* ]] && continue
KEY="${LINE%%=*}"
# Escape special characters not within single quotes
LINE=$(sed -E "s/([^'])([][\$\`\"\\!&;|<>])/\1\\\\\\2/g" <<< "$LINE")
KEY="${LINE%%=*}"
VALUE="${LINE#*=}"
# !secret handling
if [[ "$VALUE" =~ ^!secret[[:space:]]+(.+) ]]; then