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