feat: Delete unnecessary log

This commit is contained in:
ge 2022-08-21 21:07:55 +03:00
parent 24269ded43
commit ef30cd1561
2 changed files with 1 additions and 4 deletions

View File

@ -78,8 +78,6 @@ src_tar() {
archive="${dst_path}/$(gen_backup_name "$tar_ext")" archive="${dst_path}/$(gen_backup_name "$tar_ext")"
log "Archiving $src_path to $archive ..."
# Run tar # Run tar
# NOTE! `exclude` and `tar_options` variables must be unquoted! # NOTE! `exclude` and `tar_options` variables must be unquoted!
# shellcheck disable=SC2086 # shellcheck disable=SC2086

View File

@ -56,12 +56,11 @@ tgt_cp() {
# Copy files preserving metadata # Copy files preserving metadata
# shellcheck disable=SC2154 # shellcheck disable=SC2154
for backup in "${backups[@]}"; do for backup in "${backups[@]}"; do
log "Copying file $backup to $dst_path ..."
set -- cp --archive "$backup" "$dst_path" set -- cp --archive "$backup" "$dst_path"
log "Run command: $*" log "Run command: $*"
if "$@" 2>> "$log"; then if "$@" 2>> "$__log_file"; then
: # Success : # Success
else else
handle_error \ handle_error \