Skip to content

Commit

Permalink
fixed start/update action
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Oct 29, 2016
1 parent 652d4a2 commit 9a51678
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controllers/StartController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

/**
Expand Down

0 comments on commit 9a51678

Please sign in to comment.