mx-set-sattus: fix null shenanigans

This commit is contained in:
tea 2024-10-14 14:43:25 +02:00
parent 8720232166
commit 0afae2512a
No known key found for this signature in database

View File

@ -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}