sh.zio.backup: prototyping
parent
f9c3ba2cba
commit
b8cf67776a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue