Commit 2f0ec593 authored by hikouki's avatar hikouki

Modify post-root-package-install script.

Idempotence.
parent e72d4a86
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment