mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 07:35:56 +02:00
Update 00-global_var.sh
This commit is contained in:
@@ -37,6 +37,7 @@ sanitize_variable() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
printf -v escaped '%q' "$raw"
|
printf -v escaped '%q' "$raw"
|
||||||
|
escaped="${escaped//\\ } }"
|
||||||
# If nothing changed, return the original.
|
# If nothing changed, return the original.
|
||||||
if [[ "$raw" == "$escaped" ]]; then
|
if [[ "$raw" == "$escaped" ]]; then
|
||||||
printf '%s' "$raw"
|
printf '%s' "$raw"
|
||||||
|
|||||||
Reference in New Issue
Block a user