2
0
Fork 0

sh.zio.backup: fix error not ending up at shell

main
Ducky 2024-04-01 23:16:43 +01:00
parent d218f3b102
commit 7ff9c71e57
1 changed files with 1 additions and 1 deletions

View File

@ -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" "..."