mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-14 23:38:15 +01:00
Enable markdown (#172)
This commit is contained in:
parent
f4e51121fe
commit
e4b5aaeb9d
1 changed files with 8 additions and 1 deletions
|
|
@ -11,10 +11,17 @@ trigger_notification() {
|
|||
# Modify to fit your setup:
|
||||
NtfyUrl="ntfy.sh/YourUniqueTopicName"
|
||||
|
||||
if [[ "$PrintMarkdownURL" == true ]]; then
|
||||
ContentType="Markdown: yes"
|
||||
else
|
||||
ContentType="Markdown: no" #text/plain
|
||||
fi
|
||||
|
||||
curl -sS -o /dev/null --show-error --fail \
|
||||
-H "Title: $MessageTitle" \
|
||||
-H "$ContentType" \
|
||||
-d "$MessageBody" \
|
||||
$NtfyUrl
|
||||
"$NtfyUrl"
|
||||
}
|
||||
|
||||
send_notification() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue