pantheon-systems / terminus-rsync-plugin

Terminus Plugin that provides a quick shortcut for rsync-ing files to and from a Pantheon site.
MIT License
18 stars 10 forks source link

put paths in quotes to preserve spaces etc #5

Closed kurowski closed 6 years ago

kurowski commented 6 years ago

Trying to rsync with a space or parentheses in either the src or dest paths generates an error, e.g.

terminus rsync -- ~/Dropbox\ \(Personal\)/README.txt mysite.dev:files/
…
sh: -c: line 0: syntax error near unexpected token `('

or

terminus rsync -- ~/README.txt mysite.dev:files/untitled\ folder/`
…
rsync: link_stat "/Users/brandt/Projects/mysite/web/dev.fff58070-166a-485f-a158-cb401d828423@appserver.dev.fff58070-166a-485f-a158-cb401d828423.drush.in:files/untitled" failed: No such file or directory (2)

This patch fixes it.

greg-1-anderson commented 6 years ago

Thanks