Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Fix dev versions detector
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Jul 30, 2020
1 parent bec9f43 commit 08360a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CdekClient.php
Expand Up @@ -145,7 +145,7 @@ private function getDefaultUserAgent(): string
*/
private static function getVersion(): string
{
if (self::VERSION_INFO[0] === '1$' && \is_dir(__DIR__.'/../.git')) {
if (self::VERSION_INFO[0] === '$' && \is_dir(__DIR__.'/../.git')) {
return (string) \exec(\sprintf('git --git-dir=%s describe --tags --dirty=-dev --always', \escapeshellarg(__DIR__.'/../.git')));
}

Expand Down

0 comments on commit 08360a5

Please sign in to comment.