sentry-demos / ios

iOS Empower Plant
1 stars 4 forks source link

fix: auth token retrieval from .sentryclirc #46

Closed armcknight closed 1 year ago

armcknight commented 1 year ago

It appears after upgrading sentry-cli to 2.21.1 it no longer writes a trailing newline, so the grep pattern broke. now we can just take everything after token=.

Also, -n check that a string is not 0 length, so negating that is a double negative condition, equivalent to -z which checks if the string is 0 length.