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