This commit is contained in:
Alexandre
2025-07-07 08:03:57 +02:00
committed by GitHub
parent fd1eb5ad83
commit 7159083123

View File

@@ -155,7 +155,7 @@ while IFS= read -r line; do
KEYS="${line%%=*}"
VALUE="${line#*=}"
# Check if VALUE is quoted
if [[ "$VALUE" != \"*\" || "$VALUE" == '' ]]; then
if [[ "$VALUE" != \"*\" || "$VALUE" == \'*\' ]]; then
VALUE="\"$VALUE\""
fi
line="${KEYS}"="${VALUE}"
@@ -169,7 +169,8 @@ while IFS= read -r line; do
python3 /env.py
fi
# set .env
if [ -f /.env ]; then echo "$line" >>/.env; fi
echo "$line" >>/.env
# set environement
mkdir -p /etc
echo "$line" >>/etc/environment
# Export to scripts