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 "SOURCE : ${SRC}"
|
||||||
log "DESTINATION : ${DST}"
|
log "DESTINATION : ${DST}"
|
||||||
log "DELETE : ${DELETE:-"No (default)"}"
|
log "DELETE : ${DELETE:-"No (default)"}"
|
||||||
log "------------ RSYNC STARTED ---------"
|
log "------------- RSYNC STARTED ---------"
|
||||||
|
|
||||||
cd $SRC_PATH
|
cd $SRC_PATH
|
||||||
if [ "$DELETE" == "yes" ]; then
|
if [ "$DELETE" == "yes" ]; then
|
||||||
@ -171,8 +171,8 @@ function sync_files() {
|
|||||||
"${SRC}" "${DST}" | sed '/sending\ incremental\ file\ list/d' | tee -a $LOG
|
"${SRC}" "${DST}" | sed '/sending\ incremental\ file\ list/d' | tee -a $LOG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd -
|
cd - > /dev/null
|
||||||
log "------------ RSYNC ENDED -----------"
|
log "------------- RSYNC ENDED -----------"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user