Skip to content

Commit

Permalink
fix git version replacement with box
Browse files Browse the repository at this point in the history
  • Loading branch information
julienj committed Mar 4, 2024
1 parent 9aca966 commit 6e496ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Automate/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(string $name = 'Automate', string $version = '@git-v

public function getLongVersion(): string
{
if ('@git-version@' !== $this->getVersion()) {
if ('git-version' !== trim($this->getVersion(), '@')) {
return sprintf(
'<info>%s</info> version <comment>%s</comment> build <comment>%s</comment>',
$this->getName(),
Expand Down

0 comments on commit 6e496ba

Please sign in to comment.