Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
Fixes #75, where @git-version@ was not replaced in the output path.
Browse files Browse the repository at this point in the history
The problem was that I am using @git-version@ in other parts of the Box project. So as part of the build process _for_ Box, I am replacing that placeholder with the actual version number. So, when other people use this feature, it's searching for Box's current version number to replace.
  • Loading branch information
kherge committed Feb 27, 2014
1 parent 15a762f commit 71938bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/KevinGH/Box/Configuration.php
Expand Up @@ -759,8 +759,8 @@ public function getOutputPath()
$path = $base . 'default.phar';
}

if (false !== strpos($path, '@git-version@')) {
$path = str_replace('@git-version@', $this->getGitVersion(), $path);
if (false !== strpos($path, '@' . 'git-version@')) {
$path = str_replace('@' . 'git-version@', $this->getGitVersion(), $path);
}

return $path;
Expand Down

0 comments on commit 71938bf

Please sign in to comment.