mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
Correct space escaping in global_var.sh
This commit is contained in:
@@ -36,6 +36,8 @@ sanitize_variable() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
printf -v escaped '%q' "$raw"
|
printf -v escaped '%q' "$raw"
|
||||||
|
# Do not espace spaces
|
||||||
|
escaped="${escaped//\\ / }"
|
||||||
if [[ "$raw" == "$escaped" ]]; then
|
if [[ "$raw" == "$escaped" ]]; then
|
||||||
printf '%s' "$raw"
|
printf '%s' "$raw"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user