2
0
Fork 0

sh.zio.backup: prototyping

main
Ducky 2024-04-01 21:37:08 +01:00
parent f9c3ba2cba
commit b8cf67776a
1 changed files with 4 additions and 4 deletions

View File

@ -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
}