sh.zio.backup: fix logic
parent
991a21a5be
commit
5bf4386a53
|
@ -166,7 +166,7 @@ function trigger_notify() {
|
||||||
if [[ ! -f "$notify_prog" ]]; then
|
if [[ ! -f "$notify_prog" ]]; then
|
||||||
say warning "'$notify_prog' does not exist. Not sending notification"
|
say warning "'$notify_prog' does not exist. Not sending notification"
|
||||||
else
|
else
|
||||||
if [[ -n "$message" ]]; then
|
if [[ "$message" == "" ]]; then
|
||||||
"$notify_prog" \
|
"$notify_prog" \
|
||||||
--file "$log_path" \
|
--file "$log_path" \
|
||||||
--level "$level" \
|
--level "$level" \
|
||||||
|
|
Loading…
Reference in New Issue