Update 01-config_yaml.sh

This commit is contained in:
Alexandre
2025-07-03 10:51:11 +02:00
committed by GitHub
parent 767a1f1dbf
commit 42a08251a0

View File

@@ -180,8 +180,8 @@ while IFS= read -r line; do
# extract keys and values
KEYS="${line%%=*}"
VALUE="${line#*=}"
if [[ "$VALUE" == *\"* ]]; then
[[ "$VALUE" == \"*\" ]] && VALUE="${VALUE:1:-1}"
if [[ "$VALUE" == \"*\"*\" ]]; then
VALUE="${VALUE:1:-1}"
VALUE="'$VALUE'"
fi
export "${KEYS}=${VALUE}"