From 3d514678e776ba1c946717c8a3c0dcd338cf8b06 Mon Sep 17 00:00:00 2001 From: ge Date: Thu, 23 Jun 2022 00:00:24 +0300 Subject: [PATCH] feat: Minor changes --- src/lib/handlers/sources/tar.sh | 4 ++-- src/lib/handlers/targets/cp.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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