Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[No QA] Fix set-pusher-suffix #13497

Merged
merged 3 commits into from
Mar 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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