sh.zio.backup: fix script failures being logged as successful
parent
c7e8d78cf3
commit
55d05a4475
|
@ -134,8 +134,8 @@ function invoke_script() {
|
|||
script_error_log_path="$(create_tmp_file)"
|
||||
|
||||
script_output=$("$backup_scripts_dir/$backup_script_filename" 2>$script_error_log_path | tee /dev/fd/3)
|
||||
echo -e "$script_output" >> "$script_log_path"
|
||||
script_result="$?"
|
||||
echo -e "$script_output" >> "$script_log_path"
|
||||
|
||||
if [[ -f "$script_error_log_path" ]]; then
|
||||
cat "$script_error_log_path"
|
||||
|
|
Loading…
Reference in New Issue