mirror of
https://git.proxmox.com/git/mirror_acme.sh
synced 2025-04-28 17:17:07 +00:00
fix format
This commit is contained in:
parent
dbe569c0d9
commit
e15513bfdd
@ -38,7 +38,7 @@ mattermost_send() {
|
|||||||
_data="$_data\"message\": \"$_content\"}"
|
_data="$_data\"message\": \"$_content\"}"
|
||||||
|
|
||||||
export _H1="Authorization: Bearer $MATTERMOST_BOT_TOKEN"
|
export _H1="Authorization: Bearer $MATTERMOST_BOT_TOKEN"
|
||||||
|
response=""
|
||||||
if _post "$_data" "$MATTERMOST_API_URL" "" "POST" "application/json; charset=utf-8"; then
|
if _post "$_data" "$MATTERMOST_API_URL" "" "POST" "application/json; charset=utf-8"; then
|
||||||
MATTERMOST_RESULT_OK=$(echo "$response" | _egrep_o 'create_at')
|
MATTERMOST_RESULT_OK=$(echo "$response" | _egrep_o 'create_at')
|
||||||
if [ "$?" = "0" ] && [ "$MATTERMOST_RESULT_OK" ]; then
|
if [ "$?" = "0" ] && [ "$MATTERMOST_RESULT_OK" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user