sh.zio.backup: fix message not being set
parent
50ff9d1829
commit
b3a3400271
|
@ -139,7 +139,7 @@ function invoke_script() {
|
||||||
if [[ "$script_result" == 0 ]]; then
|
if [[ "$script_result" == 0 ]]; then
|
||||||
trigger_notify "success" "Backup script succeeded: $backup_script_name" "$script_log_path"
|
trigger_notify "success" "Backup script succeeded: $backup_script_name" "$script_log_path"
|
||||||
else
|
else
|
||||||
trigger_notify "error" "Backup script failed: $backup_script_name" "$script_error_log_path" "$script_log_path"
|
trigger_notify "error" "Backup script failed: $backup_script_name" "$(cat "$script_error_log_path")" "$script_log_path"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f "$script_error_log_path"
|
rm -f "$script_error_log_path"
|
||||||
|
|
Loading…
Reference in New Issue