fix home server variable name
Signed-off-by: Ulrich Weber <ulrich.weber@gmail.com>
This commit is contained in:
parent
9525c3c8c5
commit
56a2a91a4c
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ login() {
|
|||
echo
|
||||
post "/_matrix/client/r0/login" "{\"type\":\"m.login.password\", \"identifier\":{\"type\":\"m.id.user\",\"user\":\"${username}\"},\"password\":\"${password}\",\"initial_device_display_name\":$identifier}"
|
||||
|
||||
data="MATRIX_TOKEN=\"`jq -r .access_token <<<"$response"`\"\nMATRIX_HOMESERVER=\"$SERVER\"\nMATRIX_USER=\"`jq -r .user_id <<<"$response"`\"\n"
|
||||
data="MATRIX_TOKEN=\"`jq -r .access_token <<<"$response"`\"\nMATRIX_HOMESERVER=\"$MATRIX_HOMESERVER\"\nMATRIX_USER=\"`jq -r .user_id <<<"$response"`\"\n"
|
||||
echo -e "$data" > ~/.matrix.sh
|
||||
chmod 600 ~/.matrix.sh
|
||||
source ~/.matrix.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue