4
0
Эх сурвалжийг харах

Allow rsyncing to local paths

Thomas Guyot-Sionnest 16 жил өмнө
parent
commit
bb06aafc5b

+ 2 - 1
tools/sfsnapshot-upload

@@ -94,7 +94,8 @@ END_README
 md5sum *.gz | tee -a README > MD5SUM
 
 # Sync the files
-rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER:$OUT_PATH"
+[ -n "$OUT_SERVER" ] && OUT_SERVER="$OUT_SERVER:"
+rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER$OUT_PATH"
 
 trap - EXIT