From 537a4baa2f10d0705589b4fb021d8b9a8a9030f6 Mon Sep 17 00:00:00 2001 From: vaidis Date: Mon, 9 Jan 2023 20:50:03 +0200 Subject: [PATCH] hide cd back command from log --- backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup.sh b/backup.sh index 7db4c0b..8c87cda 100755 --- a/backup.sh +++ b/backup.sh @@ -146,7 +146,7 @@ function sync_files() { log "SOURCE : ${SRC}" log "DESTINATION : ${DST}" log "DELETE : ${DELETE:-"No (default)"}" - log "------------ RSYNC STARTED ---------" + log "------------- RSYNC STARTED ---------" cd $SRC_PATH if [ "$DELETE" == "yes" ]; then @@ -171,8 +171,8 @@ function sync_files() { "${SRC}" "${DST}" | sed '/sending\ incremental\ file\ list/d' | tee -a $LOG fi - cd - - log "------------ RSYNC ENDED -----------" + cd - > /dev/null + log "------------- RSYNC ENDED -----------" return 0 }