various
This commit is contained in:
parent
b358e5b924
commit
1b9994d09d
2 changed files with 15 additions and 3 deletions
|
@ -128,7 +128,11 @@ function invoke_script() {
|
|||
exec 3>&1
|
||||
|
||||
script_error_log="$(create_tmp_file)"
|
||||
script_output=$("$backup_scripts_dir/$backup_script_filename" 2>$script_error_log 2>&1 | tee /dev/fd/3)
|
||||
script_output=$("$backup_scripts_dir/$backup_script_filename" 2>$script_error_log | tee /dev/fd/3)
|
||||
|
||||
if [[ -f "$script_error_log" ]]; then
|
||||
cat "$script_error_log"
|
||||
fi
|
||||
|
||||
if [[ "$?" == 0 ]]; then
|
||||
trigger_notify "success" "Backup script succeeded: $backup_script_name" "..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue