Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
e15513bf
Commit
e15513bf
authored
Oct 06, 2023
by
neil
Browse files
fix format
parent
dbe569c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
notify/mattermost.sh
View file @
e15513bf
...
...
@@ -38,7 +38,7 @@ mattermost_send() {
_data
=
"
$_data
\"
message
\"
:
\"
$_content
\"
}"
export
_H1
=
"Authorization: Bearer
$MATTERMOST_BOT_TOKEN
"
response
=
""
if
_post
"
$_data
"
"
$MATTERMOST_API_URL
"
""
"POST"
"application/json; charset=utf-8"
;
then
MATTERMOST_RESULT_OK
=
$(
echo
"
$response
"
| _egrep_o
'create_at'
)
if
[
"
$?
"
=
"0"
]
&&
[
"
$MATTERMOST_RESULT_OK
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment