You can now use --login and --help without being logged in. (D'oh.)
This commit is contained in:
parent
2f1cd0b169
commit
9525c3c8c5
1 changed files with 2 additions and 2 deletions
|
|
@ -328,8 +328,6 @@ if [ "$ACTION" = "" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
[ -z $MATRIX_HOMESERVER ] && die "No homeserver set. Use '$0 --login' to log into an account on the given server and persist those settings."
|
||||
|
||||
if [ "$ACTION" = "login" ]; then
|
||||
login
|
||||
# Do not exit here. We want select_room to run as well.
|
||||
|
|
@ -338,6 +336,8 @@ elif [ "$ACTION" = "help" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
[ -z $MATRIX_HOMESERVER ] && die "No homeserver set. Use '$0 --login' to log into an account on a homeserver and persist those settings."
|
||||
|
||||
[ -z $MATRIX_TOKEN ] && die "No matrix token set. Use '$0 --login' to login."
|
||||
|
||||
AUTHORIZATION="Authorization: Bearer $MATRIX_TOKEN"
|
||||
|
|
|
|||
Loading…
Reference in a new issue