From b8cf67776ae51f1a3f71ab6a21f2b0502a8c34a4 Mon Sep 17 00:00:00 2001 From: Ducky Date: Mon, 1 Apr 2024 21:37:08 +0100 Subject: [PATCH] sh.zio.backup: prototyping --- usr/local/bin/sh.zio.backup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/bin/sh.zio.backup b/usr/local/bin/sh.zio.backup index 98a51c9..354871b 100755 --- a/usr/local/bin/sh.zio.backup +++ b/usr/local/bin/sh.zio.backup @@ -195,9 +195,8 @@ function trigger_notify() { title="$2" output="$3" notify_prog="/usr/local/bin/sh.zio.notify" - - echo "$output" - break + + echo "THE OUTPUT: $output" if [[ ! -f "$notify_prog" ]]; then say warning "'$notify_prog' not found. Not sending notification" @@ -205,9 +204,10 @@ function trigger_notify() { /usr/local/bin/sh.zio.notify \ --invoked-by "sh.zio.backup" \ --level "$level" \ - #--message '```\\n'"${output//$'\n'/'\\n'}"'\\n```' \ --message "$output" \ --title "$title" + + #--message '```\\n'"${output//$'\n'/'\\n'}"'\\n```' \ fi }