sh.zio.backup: add markdown formatting
parent
a7286387d8
commit
4e52bed1f7
|
@ -95,7 +95,7 @@ function invoke_restic() {
|
|||
say warning "Command failed."
|
||||
/usr/local/bin/sh.zio.notify \
|
||||
--title "Backup failed" \
|
||||
--message "$restic_out" \
|
||||
--message "```$restic_out```" \
|
||||
--level "warning"
|
||||
break
|
||||
#echo "---- THE OUTPUT: $restic_out"
|
||||
|
|
|
@ -54,7 +54,7 @@ function main() {
|
|||
"topic": "'$n_topic'"
|
||||
}'
|
||||
|
||||
curl -d "$body" -H "Authorization: Bearer $token" -H "Cache: no" "https://ntfy.zio.sh/"
|
||||
curl -d "$body" -H "Authorization: Bearer $token" -H "Cache: no" -H "Markdown: yes" "https://ntfy.zio.sh/"
|
||||
}
|
||||
|
||||
if [[ $_PLUG_INVOKED != "true" ]]; then
|
||||
|
|
Loading…
Reference in New Issue