Update 00-global_var.sh

This commit is contained in:
Alexandre
2025-07-08 12:04:57 +02:00
committed by GitHub
parent 6df4c2cd01
commit c7a7d00073

View File

@@ -37,6 +37,7 @@ sanitize_variable() {
return
fi
printf -v escaped '%q' "$raw"
escaped="${escaped//\\ } }"
# If nothing changed, return the original.
if [[ "$raw" == "$escaped" ]]; then
printf '%s' "$raw"