Browse Source

Modify post-root-package-install script.

Idempotence.
hikouki 7 years ago
parent
commit
2f0ec593bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      composer.json

+ 1 - 1
composer.json

@@ -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"