Skip to content

Commit 15ca37b

Browse files
Avoid falsely .gitignore file when cache:clear fails
1 parent 119bc75 commit 15ca37b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@
112112
"@auto-scripts"
113113
],
114114
"post-root-package-install": [
115+
"@php -r \"file_put_contents('.gitignore', str_replace(['composer.lock' . PHP_EOL, 'symfony.lock' . PHP_EOL, 'package-lock.json' . PHP_EOL], ['', '', ''], file_get_contents('.gitignore')));\"",
115116
"@php -r \"file_put_contents('.env.local', 'APP_ENV=dev' . PHP_EOL);\"",
116117
"@php -r \"file_put_contents('.env', str_replace('APP_SECRET=\\'s\\$cretf0rt3st\\'', 'APP_SECRET=' . bin2hex(random_bytes(16)), file_get_contents('.env')));\""
117118
],
118119
"post-create-project-cmd": [
119-
"@php -r \"file_put_contents('.gitignore', str_replace(['composer.lock' . PHP_EOL, 'symfony.lock' . PHP_EOL, 'package-lock.json' . PHP_EOL], ['', '', ''], file_get_contents('.gitignore')));\"",
120120
"@php bin/adminconsole sulu:admin:info --ansi"
121121
],
122122
"bootstrap-test-environment": [

0 commit comments

Comments
 (0)