Skip to content

Commit

Permalink
Check if the package is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 28, 2023
1 parent 2eaf258 commit 681482d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framework/src/Console/Commands/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function handle(): int

$this->newLine();
$this->comment('Git Version: '.(string) app('git.version'));
$this->comment('Hyde Version: '.(InstalledVersions::getPrettyVersion('hyde/hyde') ?: 'unreleased'));
$this->comment('Hyde Version: '.((InstalledVersions::isInstalled('hyde/hyde') ? InstalledVersions::getPrettyVersion('hyde/hyde') : null) ?: 'unreleased'));
$this->comment('Framework Version: '.(InstalledVersions::getPrettyVersion('hyde/framework') ?: 'unreleased'));

$this->newLine();
Expand Down

0 comments on commit 681482d

Please sign in to comment.