mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-10 16:01:00 +02:00
Escape exports
This commit is contained in:
@@ -53,7 +53,7 @@ for KEYS in "${arr[@]}"; do
|
|||||||
# Sanitize variable
|
# Sanitize variable
|
||||||
VALUE=$(sanitize_variable "$VALUE")
|
VALUE=$(sanitize_variable "$VALUE")
|
||||||
# Continue for single values
|
# Continue for single values
|
||||||
line="${KEYS}=${VALUE}"
|
line="${KEYS}='${VALUE//\'/\'\\\'\'}'"
|
||||||
# Check if secret
|
# Check if secret
|
||||||
if [[ "${line}" == *"!secret "* ]]; then
|
if [[ "${line}" == *"!secret "* ]]; then
|
||||||
echo "secret detected"
|
echo "secret detected"
|
||||||
|
|||||||
Reference in New Issue
Block a user