From ef30cd156164651eeed20fd1f881cf25a7297bbf Mon Sep 17 00:00:00 2001 From: ge Date: Sun, 21 Aug 2022 21:07:55 +0300 Subject: [PATCH] feat: Delete unnecessary log --- src/lib/handlers/sources/tar.sh | 2 -- src/lib/handlers/targets/cp.sh | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/handlers/sources/tar.sh b/src/lib/handlers/sources/tar.sh index 8c126e1..75488c1 100644 --- a/src/lib/handlers/sources/tar.sh +++ b/src/lib/handlers/sources/tar.sh @@ -78,8 +78,6 @@ src_tar() { archive="${dst_path}/$(gen_backup_name "$tar_ext")" - log "Archiving $src_path to $archive ..." - # Run tar # NOTE! `exclude` and `tar_options` variables must be unquoted! # shellcheck disable=SC2086 diff --git a/src/lib/handlers/targets/cp.sh b/src/lib/handlers/targets/cp.sh index 26914d2..240b66e 100644 --- a/src/lib/handlers/targets/cp.sh +++ b/src/lib/handlers/targets/cp.sh @@ -56,12 +56,11 @@ tgt_cp() { # Copy files preserving metadata # shellcheck disable=SC2154 for backup in "${backups[@]}"; do - log "Copying file $backup to $dst_path ..." set -- cp --archive "$backup" "$dst_path" log "Run command: $*" - if "$@" 2>> "$log"; then + if "$@" 2>> "$__log_file"; then : # Success else handle_error \