mirror of
https://github.com/getgrav/grav.git
synced 2026-07-13 09:02:34 +02:00
Displaying packages not found when running Version command
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user