Skip to content

Commit

Permalink
Fix bug caused by exit-code being set when verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
Potherca committed Jan 17, 2020
1 parent 5d48d9a commit 687bfb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Plugin.php
Expand Up @@ -180,9 +180,11 @@ public function onDependenciesChangedEvent()
} elseif ($isVerbose) {
$io->write(sprintf('<info>%s</info>', self::MESSAGE_NOTHING_TO_INSTALL));
}
} elseif ($isVerbose) {
$io->write(sprintf('<info>%s</info>', self::MESSAGE_NOT_INSTALLED));
} else {
$exitCode = 1;
if ($isVerbose) {
$io->write(sprintf('<info>%s</info>', self::MESSAGE_NOT_INSTALLED));
}
}

exit($exitCode);
Expand Down

0 comments on commit 687bfb6

Please sign in to comment.