mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Fix python-dotenv error
https://github.com/alexbelgium/hassio-addons/issues/1998#issuecomment-3274113878
This commit is contained in:
@@ -54,8 +54,13 @@ for KEYS in "${arr[@]}"; do
|
|||||||
else
|
else
|
||||||
# Sanitize variable
|
# Sanitize variable
|
||||||
VALUE=$(sanitize_variable "$VALUE")
|
VALUE=$(sanitize_variable "$VALUE")
|
||||||
# Continue for single values
|
# If value is empty, returns an empty value
|
||||||
line="${KEYS}='${VALUE//\'/\'\\\'\'}'"
|
if [[ -z "$VALUE" ]]; then
|
||||||
|
line="${KEYS}=''"
|
||||||
|
else
|
||||||
|
# Continue for single values
|
||||||
|
line="${KEYS}='${VALUE//\'/\'\\\'\'}'"
|
||||||
|
fi
|
||||||
# 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