lsightly more secure
This commit is contained in:
parent
466822d57f
commit
afb17bbc85
@ -1,8 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
#msg="\"{\\\"content\\\":\\\"$@\\\"}\""
|
||||
msg="{\"content\":\"$@\"}"
|
||||
echo $msg
|
||||
msgString=$@
|
||||
|
||||
curl -H "Content-Type: application/json" -d "$msg" \
|
||||
#WEBHOOK URL
|
||||
curl -XPOST \
|
||||
-d "$(jq -cn --arg msgtype 'm.text' --arg body "$msgString" '{msg: $ARGS.named}' | jq -s add | jq .msg)" \
|
||||
#WEBHOOK URL
|
||||
|
Loading…
Reference in New Issue
Block a user