From 6e496ba55a6d2b8d3120269e889b9d09dad89c8f Mon Sep 17 00:00:00 2001 From: Julien Jacottet Date: Mon, 4 Mar 2024 23:42:22 +0100 Subject: [PATCH] fix git version replacement with box --- src/Automate/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Automate/Application.php b/src/Automate/Application.php index 8458c15..3a0a88f 100644 --- a/src/Automate/Application.php +++ b/src/Automate/Application.php @@ -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( '%s version %s build %s', $this->getName(),