Update 01-config_yaml.sh

This commit is contained in:
Alexandre
2025-07-07 08:05:09 +02:00
committed by GitHub
parent 7159083123
commit 6f67ccf808

View File

@@ -155,7 +155,7 @@ while IFS= read -r line; do
KEYS="${line%%=*}"
VALUE="${line#*=}"
# Check if VALUE is quoted
if [[ "$VALUE" != \"*\" || "$VALUE" == \'*\' ]]; then
if [[ "$VALUE" != \"*\" ]] && [[ "$VALUE" != \'*\' ]]; then
VALUE="\"$VALUE\""
fi
line="${KEYS}"="${VALUE}"