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.
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 aftertoken=
.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.