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