feat: Minor changes

This commit is contained in:
ge 2022-06-23 00:00:24 +03:00
parent bdeb39581d
commit 3d514678e7
2 changed files with 4 additions and 3 deletions

View File

@ -99,11 +99,11 @@ handler::tar() {
[ "$__verbose" ] && {
echo "Source path: $src_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 "Command: tar $exclude $opts $archive $src_path"
log "Run command: tar $exclude $opts $archive $src_path"
# Run tar
try tar "$exclude" "$opts" "$archive" "$src_path"

View File

@ -48,7 +48,8 @@ handler::cp() {
# Copy files preserving metadata
for backup in "${backups[@]}"; do
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"
done
fi