Skip to content
Permalink
Browse files

shows the version even when $shellList is empty.

  • Loading branch information...
alysson
alysson committed May 26, 2016
1 parent 39e8213 commit 08e51e12895e34f3a20af53cdf5b977dac19214d
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Shell/CommandListShell.php
@@ -64,13 +64,13 @@ public function main()
$this->out("<info>Available Shells:</info>", 2);
}
$shellList = $this->Command->getShellList();
if (empty($shellList)) {
if (!empty($this->params['version'])) {
$this->out(Configure::version());
return;
}
if (!empty($this->params['version'])) {
$this->out(Configure::version());
$shellList = $this->Command->getShellList();
if (empty($shellList)) {
return;
}

0 comments on commit 08e51e1

Please sign in to comment.
You can’t perform that action at this time.