diff --git a/src/lib/handlers/sources/tar.sh b/src/lib/handlers/sources/tar.sh index 23f5b65..283e319 100644 --- a/src/lib/handlers/sources/tar.sh +++ b/src/lib/handlers/sources/tar.sh @@ -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" diff --git a/src/lib/handlers/targets/cp.sh b/src/lib/handlers/targets/cp.sh index bddd085..9e1768f 100644 --- a/src/lib/handlers/targets/cp.sh +++ b/src/lib/handlers/targets/cp.sh @@ -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