Correct script

This commit is contained in:
Alexandre
2023-02-26 07:25:57 +01:00
committed by GitHub
parent 27d760ca6a
commit 35ebd61b85

View File

@@ -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