mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-13 17:40:31 +02:00
Update 01-config_yaml.sh
This commit is contained in:
@@ -159,7 +159,11 @@ while IFS= read -r line; do
|
||||
# extract keys and values
|
||||
KEYS="${line%%=*}"
|
||||
VALUE="${line#*=}"
|
||||
line="${KEYS}="${VALUE}"
|
||||
# Check if VALUE is quoted
|
||||
if [[ "$VALUE" != \"*\" || "$VALUE" == '' ]]; then
|
||||
VALUE="\"$VALUE\""
|
||||
fi
|
||||
line="${KEYS}"="${VALUE}"
|
||||
export "$line"
|
||||
# export to python
|
||||
if command -v "python3" &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user