mx-set-sattus: fix null shenanigans
This commit is contained in:
parent
8720232166
commit
0afae2512a
|
@ -19,6 +19,7 @@ local response=$(curl --silent \
|
|||
"https://${host}/_matrix/client/v3/presence/${user}/status")
|
||||
local presence=$(jq --raw-output .presence <<<${response})
|
||||
local status_msg=$(jq --raw-output .status_msg <<<${response})
|
||||
[[ ${status_msg} == "null" ]] && status_msg=""
|
||||
|
||||
if [[ -v 1 ]]; then
|
||||
mxstatus=${1}
|
||||
|
|
Loading…
Reference in New Issue
Block a user