Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

composer scripts is not compatible with windows #450

Closed
AndyP1965 opened this issue Nov 21, 2019 · 5 comments · Fixed by #451 or #452
Closed

composer scripts is not compatible with windows #450

AndyP1965 opened this issue Nov 21, 2019 · 5 comments · Fixed by #451 or #452

Comments

@AndyP1965
Copy link

composer.json:
in "scripts": { "post-create-project-cmd": [...] }

please change double quoting to single quoting in the line:

"php -r "$file = file_get_contents('.gitignore'); $file = str_replace('composer.lock', '', $file); file_put_contents('.gitignore', $file);""

@weierophinney
Copy link
Member

Why? Can you explain the issue you encountered? What operating system were you using?

@weierophinney
Copy link
Member

nm, I see you're on Windows. Still would like to know what error you encountered - the quoting should work cross-platform generally.

@AndyP1965
Copy link
Author

AndyP1965 commented Nov 21, 2019 via email

@AndyP1965
Copy link
Author

AndyP1965 commented Nov 27, 2019 via email

@weierophinney
Copy link
Member

@AndyP1965 Just confirmed on Linux. Will try to get another option in place shortly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants