From 676f8be7ce3576b771508ed92c8a157178721027 Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 26 Apr 2021 22:14:07 -0400 Subject: Accept fetches with special chars Wrap the remote connection with " " to avoid breaking when there is a ( or other shell characters in the file --- ssync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf