Skip to content
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

Ensure paths with escaped characters produce platform-independent script names #3

Open
nblumhardt opened this issue Jul 21, 2017 · 1 comment

Comments

@nblumhardt
Copy link
Member

Relative script filenames should produce the same persisted script name on all platforms. Currently, path separators are replaced with / uniformly, but e.g. escaped spaces and escaped separators may cause script names to differ depending on the platform from which Piggy is run.

@todthomson
Copy link
Contributor

I'm presuming the fix is to be found here:

.Select(fp => new ChangeScriptFile(fp, fp.Substring(prefixLength).Replace(Path.DirectorySeparatorChar, '/')))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants