From ee95219f31ab852808e8a81b534f994ae261d28d Mon Sep 17 00:00:00 2001 From: Rene Padillo Date: Tue, 13 Jan 2026 09:07:54 +0800 Subject: [PATCH] fix: improve environment variable loading in lesgo-scripts.sh --- bin/lesgo-scripts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/lesgo-scripts.sh b/bin/lesgo-scripts.sh index 819be52a..342868ff 100755 --- a/bin/lesgo-scripts.sh +++ b/bin/lesgo-scripts.sh @@ -236,7 +236,9 @@ function destroy_service () if [ -n "$STAGE" ]; then # Load env - export $(cat ./config/environments/.env.${ENVFILE} | sed 's/#.*//g' | xargs) + set -a + . ./config/environments/.env.${ENVFILE} + set +a if [ ${INVOKE} -eq 1 ]; then if [ -n "$FUNCTION" ]; then