Skip to content

Commit

Permalink
fix: auth token processing
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight authored Sep 27, 2023
2 parents 0c2bc65 + a135790 commit 686a59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ An iOS app integrating Sentry to demo its various product features. See [Empower
- Install XCode
- In a terminal, run:
- `make init`
- `sentry-cli login` (see [`sentry-cli` docs](https://docs.sentry.io/product/cli/) for more info)
- `sentry-cli login` (see [`sentry-cli` docs](https://docs.sentry.io/product/cli/) for more info) and use an **org-level** auth token from the `demo` org

## Run
Open Xcode and click the "Play" button or press ⌘R
Expand Down
2 changes: 1 addition & 1 deletion upload-symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if which sentry-cli >/dev/null; then
fi
if [ -z "$SENTRY_AUTH_TOKEN" ]; then
if [ -f ~/.sentryclirc ]; then
export SENTRY_AUTH_TOKEN=$(grep -oE "token=(.*)$" ~/.sentryclirc | cut -d'=' -f2)
export SENTRY_AUTH_TOKEN=$(grep -oE "token=(.*)$" ~/.sentryclirc | sed s/'token='//)
echo "Using SENTRY_AUTH_TOKEN from .sentryclirc."
fi
if [ -f ~/.zshrc ] && grep -q "export SENTRY_AUTH_TOKEN" ~/.zshrc; then
Expand Down

0 comments on commit 686a59c

Please sign in to comment.