Skip to content

Commit

Permalink
Merge pull request #13497 from Expensify/Rory-FixPusherSuffix
Browse files Browse the repository at this point in the history
[No QA] Fix set-pusher-suffix
  • Loading branch information
roryabraham authored Mar 1, 2023
2 parents 472affc + b703eac commit 06f75ab
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/set-pusher-suffix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
# config file to be parsed for the suffix (relative to current project root)
CONFIG_FILE="../Web-Expensify/_config.local.php"

if [ -f ".env" ]; then
# Export vars from the .env file to access the $EXPENSIFY_URL
export "$(grep -v '^#' .env | xargs)"
if [ -f '.env' ]; then
while read -r line; do
if [[ "$line" == \#* ]]; then
continue
fi
export "${line?}"
done < .env
fi

# use the suffix only when the config file can be found
Expand Down

0 comments on commit 06f75ab

Please sign in to comment.