Skip to content

Commit 34812ce

Browse files
authored
Port test.sh to macOS (#1031)
1 parent 64aec77 commit 34812ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ sentry_api_request "internal/options/?query=is:required" -X PUT --data '{"mail.u
8585

8686
SENTRY_DSN=$(sentry_api_request "projects/sentry/internal/keys/" | awk 'BEGIN { RS=",|:{\n"; FS="\""; } $2 == "public" && $4 ~ "^http" { print $4; exit; }')
8787
# We ignore the protocol and the host as we already know those
88-
DSN_PIECES=(`echo $SENTRY_DSN | sed -ne 's|^https\?://\([0-9a-z]\+\)@[^/]\+/\([0-9]\+\)$|\1\n\2|p'`)
88+
DSN_PIECES=(`echo $SENTRY_DSN | sed -ne 's|^https\{0,1\}://\([0-9a-z]\{1,\}\)@[^/]\{1,\}/\([0-9]\{1,\}\)$|\1 \2|p' | tr ' ' '\n'`)
8989
SENTRY_KEY=${DSN_PIECES[0]}
9090
PROJECT_ID=${DSN_PIECES[1]}
9191

0 commit comments

Comments
 (0)