hide cd back command from log
This commit is contained in:
parent
7074822870
commit
537a4baa2f
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user