2
0
Fork 0
This commit is contained in:
Ducky 2024-04-01 23:20:42 +01:00
parent b358e5b924
commit 1b9994d09d
2 changed files with 15 additions and 3 deletions

View file

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