sh.zio.backup: prototyping
parent
f9c3ba2cba
commit
b8cf67776a
|
@ -195,9 +195,8 @@ function trigger_notify() {
|
||||||
title="$2"
|
title="$2"
|
||||||
output="$3"
|
output="$3"
|
||||||
notify_prog="/usr/local/bin/sh.zio.notify"
|
notify_prog="/usr/local/bin/sh.zio.notify"
|
||||||
|
|
||||||
echo "$output"
|
echo "THE OUTPUT: $output"
|
||||||
break
|
|
||||||
|
|
||||||
if [[ ! -f "$notify_prog" ]]; then
|
if [[ ! -f "$notify_prog" ]]; then
|
||||||
say warning "'$notify_prog' not found. Not sending notification"
|
say warning "'$notify_prog' not found. Not sending notification"
|
||||||
|
@ -205,9 +204,10 @@ function trigger_notify() {
|
||||||
/usr/local/bin/sh.zio.notify \
|
/usr/local/bin/sh.zio.notify \
|
||||||
--invoked-by "sh.zio.backup" \
|
--invoked-by "sh.zio.backup" \
|
||||||
--level "$level" \
|
--level "$level" \
|
||||||
#--message '```\\n'"${output//$'\n'/'\\n'}"'\\n```' \
|
|
||||||
--message "$output" \
|
--message "$output" \
|
||||||
--title "$title"
|
--title "$title"
|
||||||
|
|
||||||
|
#--message '```\\n'"${output//$'\n'/'\\n'}"'\\n```' \
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue