diff --git a/src/controllers/StartController.php b/src/controllers/StartController.php index e4ee252..8757cdb 100644 --- a/src/controllers/StartController.php +++ b/src/controllers/StartController.php @@ -72,7 +72,9 @@ public function addAutoloader() */ public function actionUpdate() { - return $this->passthru('composer', ['update', '-d', '.hidev', '--prefer-source', '--ansi']); + if (file_exists('.hidev/composer.json')) { + return $this->passthru('composer', ['update', '-d', '.hidev', '--prefer-source', '--ansi']); + } } /**