summaryrefslogtreecommitdiff
path: root/sync/sink
diff options
context:
space:
mode:
Diffstat (limited to 'sync/sink')
-rwxr-xr-xsync/sink2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/sink b/sync/sink
index 188083d..04c95e6 100755
--- a/sync/sink
+++ b/sync/sink
@@ -26,7 +26,7 @@ printerror() { echo -n "$BOLD$RED[An error occured while syncing $SYNCNAME]\n"
sync() {
[ $oper = "up" ] && SYNCNAME="$1$2 to $rdest$2" || SYNCNAME="$rdest$2 to $1$2"
printsyncmsg
- (if [ $oper = "up" ]; then rsync $ropts $1$2 $rdest; else rsync $ropts $rdest$2 $1; fi) \
+ (if [ $oper = "up" ]; then rsync $ropts $1$2 $rdest; else rsync $ropts --delete $rdest$2 $1; fi) \
&& printsuccess || printerror
}