aboutsummaryrefslogtreecommitdiff
path: root/tools/sfsnapshot-upload
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sfsnapshot-upload')
-rwxr-xr-xtools/sfsnapshot-upload3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sfsnapshot-upload b/tools/sfsnapshot-upload
index 1507cffc..e0a2300c 100755
--- a/tools/sfsnapshot-upload
+++ b/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