mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 18:08:16 +01:00
Correct script
This commit is contained in:
@@ -112,6 +112,9 @@ while IFS= read -r line; do
|
||||
# Data validation
|
||||
if [[ "$line" =~ ^.+[=].+$ ]]; then
|
||||
export "$line"
|
||||
# extract keys and values
|
||||
KEYS="${line%=*}"
|
||||
VALUE="${line#*=}"
|
||||
# export to python
|
||||
if command -v "python3" &>/dev/null; then
|
||||
[ ! -f /env.py ] && echo "import os" > /env.py
|
||||
|
||||
Reference in New Issue
Block a user