Skip to content

Commit

Permalink
fix variables with spaces not working in deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Feb 9, 2024
1 parent f26a1ef commit 23ce40c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion infrastructure/deployment/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ echo $COMPOSE_FILES_USED
# .env.production
if [ -f $PROJECT_ROOT/.env.$ENV ]
then
export $(cat $PROJECT_ROOT/.env.$ENV | sed 's/#.*//g' | xargs)
while IFS='' read -r line || [[ -n "$line" ]]; do
eval "export $line"
done < $PROJECT_ROOT/.env.$ENV
fi

trap trapint SIGINT SIGTERM
Expand Down

0 comments on commit 23ce40c

Please sign in to comment.