sh.zio.backup: fix error not ending up at shell
parent
d218f3b102
commit
7ff9c71e57
|
@ -128,7 +128,7 @@ function invoke_script() {
|
||||||
exec 3>&1
|
exec 3>&1
|
||||||
|
|
||||||
script_error_log="$(create_tmp_file)"
|
script_error_log="$(create_tmp_file)"
|
||||||
script_output=$("$backup_scripts_dir/$backup_script_filename" 2>$script_error_log | tee /dev/fd/3)
|
script_output=$("$backup_scripts_dir/$backup_script_filename" 2>$script_error_log 2>&1 | tee /dev/fd/3)
|
||||||
|
|
||||||
if [[ "$?" == 0 ]]; then
|
if [[ "$?" == 0 ]]; then
|
||||||
trigger_notify "success" "Backup script succeeded: $backup_script_name" "..."
|
trigger_notify "success" "Backup script succeeded: $backup_script_name" "..."
|
||||||
|
|
Loading…
Reference in New Issue