Modify post-root-package-install script.

Idempotence.
This commit is contained in:
hikouki 2016-07-28 12:10:54 +09:00
parent e72d4a86e8
commit 2f0ec593bc

View File

@ -30,7 +30,7 @@
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"