Correct space escaping in global_var.sh

This commit is contained in:
Alexandre
2025-08-25 15:21:45 +02:00
committed by GitHub
parent b43cf0e5d9
commit 690ee8cf63

View File

@@ -36,6 +36,8 @@ sanitize_variable() {
return
fi
printf -v escaped '%q' "$raw"
# Do not espace spaces
escaped="${escaped//\\ / }"
if [[ "$raw" == "$escaped" ]]; then
printf '%s' "$raw"
else