sh.zio.backup: add markdown formatting
This commit is contained in:
parent
a7286387d8
commit
4e52bed1f7
2 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ function invoke_restic() {
|
||||||
say warning "Command failed."
|
say warning "Command failed."
|
||||||
/usr/local/bin/sh.zio.notify \
|
/usr/local/bin/sh.zio.notify \
|
||||||
--title "Backup failed" \
|
--title "Backup failed" \
|
||||||
--message "$restic_out" \
|
--message "```$restic_out```" \
|
||||||
--level "warning"
|
--level "warning"
|
||||||
break
|
break
|
||||||
#echo "---- THE OUTPUT: $restic_out"
|
#echo "---- THE OUTPUT: $restic_out"
|
||||||
|
|
|
@ -54,7 +54,7 @@ function main() {
|
||||||
"topic": "'$n_topic'"
|
"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
|
if [[ $_PLUG_INVOKED != "true" ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue