-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we escape exclude patterns in RsyncTask? #77
Comments
Breaking BC before the stable version releases is not so painful. P.S. never heard of that function before :| |
Ok, will create a PR the next days.
|
…ttern shell escape rsync exclude pattern
If you want to exclude patterns with a wildcard, e.g. *.scss, it will not exclude these files but (as the shell expands the wildcard) also sync matching files in the current working directory (which is certainly not what you want ;).
In
exclude()
method of rsync task (https://github.com/Codegyre/Robo/blob/master/src/Task/Rsync.php#L241), we could add escapeshellarg:This would be a BC break for people who already added ' themselves:
But from my point of view, it should be escaped.
The text was updated successfully, but these errors were encountered: