2
0
Fork 0

sh.zio.backup: send notification to correct topic

main
Ducky 2024-04-02 00:27:59 +01:00
parent 55d05a4475
commit 5456552ba8
1 changed files with 2 additions and 0 deletions

View File

@ -174,11 +174,13 @@ function trigger_notify() {
if [[ "$message" == "" ]]; then if [[ "$message" == "" ]]; then
"$notify_prog" \ "$notify_prog" \
--file "$log_path" \ --file "$log_path" \
--invoked-by "$(basename $me_filename)" \
--level "$level" \ --level "$level" \
--title "$title" --title "$title"
else else
"$notify_prog" \ "$notify_prog" \
--file "$log_path" \ --file "$log_path" \
--invoked-by "$(basename $me_filename)" \
--level "$level" \ --level "$level" \
--message '\\`\\`\\`\\n'"${message//$'\n'/'\\n'}"'\\n\\`\\`\\`' \ --message '\\`\\`\\`\\n'"${message//$'\n'/'\\n'}"'\\n\\`\\`\\`' \
--title "$title" --title "$title"