hide cd back command from log

This commit is contained in:
Ste Vaidis 2023-01-09 20:50:03 +02:00
parent 7074822870
commit 537a4baa2f

View File

@ -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
}