Update 01-config_yaml.sh

This commit is contained in:
Alexandre
2025-07-07 07:48:15 +02:00
committed by GitHub
parent ed73d3b506
commit 28848aad85

View File

@@ -159,7 +159,11 @@ while IFS= read -r line; do
# extract keys and values # extract keys and values
KEYS="${line%%=*}" KEYS="${line%%=*}"
VALUE="${line#*=}" VALUE="${line#*=}"
line="${KEYS}="${VALUE}" # Check if VALUE is quoted
if [[ "$VALUE" != \"*\" || "$VALUE" == '' ]]; then
VALUE="\"$VALUE\""
fi
line="${KEYS}"="${VALUE}"
export "$line" export "$line"
# export to python # export to python
if command -v "python3" &>/dev/null; then if command -v "python3" &>/dev/null; then