summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill <bill@billserver.senders.io>2021-04-26 22:14:07 -0400
committerBill <bill@billserver.senders.io>2021-04-26 22:14:07 -0400
commit676f8be7ce3576b771508ed92c8a157178721027 (patch)
tree706b375f63fbdcc5835c205ae960e3df98b111ae
parentac7d768544df612997ebdef8b40d56ab0d468f25 (diff)
Accept fetches with special chars
Wrap the remote connection with " " to avoid breaking when there is a ( or other shell characters in the file
-rwxr-xr-xssync2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssync b/ssync
index 0bf57a2..dad8c4f 100755
--- a/ssync
+++ b/ssync
@@ -68,7 +68,7 @@ if [ $COUNT -gt 0 ]; then
log "Syncing now"
cat $FETCH_FILE | xargs -n1 -P$PARALLEL -I '{}' rsync -e "ssh -i $KEY_FILE" \
-av \
- $REMOTE:${REMOTE_DIR}/'{}' ${SRC_DIR}
+ $REMOTE:"${REMOTE_DIR}/'{}'" ${SRC_DIR}
else
log "No files to sync"
fi