2
0
Fork 0

sh.zio.backup: fix script failures being logged as successful

main
Ducky 2024-04-02 00:26:12 +01:00
parent c7e8d78cf3
commit 55d05a4475
1 changed files with 1 additions and 1 deletions

View File

@ -134,8 +134,8 @@ function invoke_script() {
script_error_log_path="$(create_tmp_file)" script_error_log_path="$(create_tmp_file)"
script_output=$("$backup_scripts_dir/$backup_script_filename" 2>$script_error_log_path | tee /dev/fd/3) 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="$?" script_result="$?"
echo -e "$script_output" >> "$script_log_path"
if [[ -f "$script_error_log_path" ]]; then if [[ -f "$script_error_log_path" ]]; then
cat "$script_error_log_path" cat "$script_error_log_path"