feat: Minor changes
This commit is contained in:
		@@ -99,11 +99,11 @@ handler::tar() {
 | 
				
			|||||||
    [ "$__verbose" ] && {
 | 
					    [ "$__verbose" ] && {
 | 
				
			||||||
        echo "Source path: $src_path"
 | 
					        echo "Source path: $src_path"
 | 
				
			||||||
        echo "Destination path: $dst_path"
 | 
					        echo "Destination path: $dst_path"
 | 
				
			||||||
        echo "Command: tar $exclude $opts $archive $src_path"
 | 
					        echo "Run command: tar $exclude $opts $archive $src_path"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    log "Archiving $src_path to $archive ..."
 | 
					    log "Archiving $src_path to $archive ..."
 | 
				
			||||||
    log "Command: tar $exclude $opts $archive $src_path"
 | 
					    log "Run command: tar $exclude $opts $archive $src_path"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Run tar
 | 
					    # Run tar
 | 
				
			||||||
    try tar "$exclude" "$opts" "$archive" "$src_path"
 | 
					    try tar "$exclude" "$opts" "$archive" "$src_path"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,7 +48,8 @@ handler::cp() {
 | 
				
			|||||||
        # Copy files preserving metadata
 | 
					        # Copy files preserving metadata
 | 
				
			||||||
        for backup in "${backups[@]}"; do
 | 
					        for backup in "${backups[@]}"; do
 | 
				
			||||||
            log "Copying file $backup to $dst_path ..."
 | 
					            log "Copying file $backup to $dst_path ..."
 | 
				
			||||||
            [ "$__verbose" ] && echo "Command: cp --archive $backup $dst_path"
 | 
					            log "Run command: cp --archive $backup $dst_path"
 | 
				
			||||||
 | 
					            [ "$__verbose" ] && echo "Run command: cp --archive $backup $dst_path"
 | 
				
			||||||
            try cp --archive "$backup" "$dst_path"
 | 
					            try cp --archive "$backup" "$dst_path"
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user