diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 93577b629..4301cdf00 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -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"