feat: Delete unnecessary log
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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 \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user