Displaying packages not found when running Version command

This commit is contained in:
Djamil Legato
2014-10-29 09:43:10 -07:00
parent 74747844e4
commit e33693f224

View File

@@ -89,7 +89,12 @@ class VersionCommand extends Command
}
$updatable = $updatable ?: '';
$this->output->writeln('You are running <white>' . $name . '</white> v<cyan>' . $version . '</cyan>' . $updatable);
if ($installed || $package == 'grav') {
$this->output->writeln('You are running <white>' . $name . '</white> v<cyan>' . $version . '</cyan>' . $updatable);
} else {
$this->output->writeln('Package <red>' . $package . '</red> not found');
}
}
}
}