sh.zio.backup: prototyping
parent
cb0e1ef4a1
commit
0c88a7e959
|
@ -193,8 +193,8 @@ function invoke_script() {
|
||||||
function trigger_notify() {
|
function trigger_notify() {
|
||||||
level="$1"
|
level="$1"
|
||||||
title="$2"
|
title="$2"
|
||||||
#output="$3"
|
output="$(echo "$3")"
|
||||||
output="yo"
|
#output="yo"
|
||||||
notify_prog="/usr/local/bin/sh.zio.notify"
|
notify_prog="/usr/local/bin/sh.zio.notify"
|
||||||
|
|
||||||
echo "THE OUTPUT: $output"
|
echo "THE OUTPUT: $output"
|
||||||
|
@ -203,7 +203,6 @@ function trigger_notify() {
|
||||||
say warning "'$notify_prog' not found. Not sending notification"
|
say warning "'$notify_prog' not found. Not sending notification"
|
||||||
else
|
else
|
||||||
/usr/local/bin/sh.zio.notify \
|
/usr/local/bin/sh.zio.notify \
|
||||||
--invoked-by "sh.zio.backup" \
|
|
||||||
--level "$level" \
|
--level "$level" \
|
||||||
--message "$output" \
|
--message "$output" \
|
||||||
--title "$title"
|
--title "$title"
|
||||||
|
|
Loading…
Reference in New Issue