diff options
author | Bill <bill@billserver.senders.io> | 2021-04-26 22:14:07 -0400 |
---|---|---|
committer | Bill <bill@billserver.senders.io> | 2021-04-26 22:14:07 -0400 |
commit | 676f8be7ce3576b771508ed92c8a157178721027 (patch) | |
tree | 706b375f63fbdcc5835c205ae960e3df98b111ae | |
parent | ac7d768544df612997ebdef8b40d56ab0d468f25 (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-x | ssync | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |