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