瀏覽代碼

Allow rsyncing to local paths

Thomas Guyot-Sionnest 16 年之前
父節點
當前提交
bb06aafc5b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/sfsnapshot-upload

+ 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