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

Commit e6839d3

Browse files
committed
Hotfix: change quoting in composer script to work cross platform
The issue is present on Windows when using single quotes. Fix #450
1 parent 557dd78 commit e6839d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"development-status": "zf-development-mode status",
122122
"post-create-project-cmd": [
123123
"@development-enable",
124-
"php -r '$file = file_get_contents(\".gitignore\"); $file = str_replace(\"composer.lock\", \"\", $file); file_put_contents(\".gitignore\", $file);'"
124+
"php -r \"$file = file_get_contents('.gitignore'); $file = str_replace('composer.lock', '', $file); file_put_contents('.gitignore', $file);\""
125125
],
126126
"serve": "php -S 0.0.0.0:8080 -t public",
127127
"test": "phpunit"

0 commit comments

Comments
 (0)