Remove \ that break env.py

https://github.com/alexbelgium/hassio-addons/issues/1352
This commit is contained in:
Alexandre
2024-04-24 13:20:07 +02:00
committed by GitHub
parent 8c5a44f56d
commit 18084334ce

View File

@@ -66,9 +66,9 @@ for KEYS in "${arr[@]}"; do
# shellcheck disable=SC2163
export "$line"
# 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
echo "os.environ['${KEYS}'] = '${VALUE//[\"\']/}'" >> /env.py
echo "os.environ['${KEYS}'] = '${VALUE//[\"\'\\]/}'" >> /env.py
python3 /env.py
fi
# set .env