mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Fix parsing of puppet-lint --version
Summary: This seems to be off, at least for `puppet-lint` versions greater than 1.0. Test Plan: `arc unit` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11312
This commit is contained in:
parent
9c0568e12d
commit
14e5fbbd6b
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ final class ArcanistPuppetLintLinter extends ArcanistExternalLinter {
|
|||
list($stdout) = execx('%C --version', $this->getExecutableCommand());
|
||||
|
||||
$matches = array();
|
||||
$regex = '/^Puppet-lint (?P<version>\d+\.\d+\.\d+)$/';
|
||||
$regex = '/^puppet-lint (?P<version>\d+\.\d+\.\d+)$/';
|
||||
if (preg_match($regex, $stdout, $matches)) {
|
||||
return $matches['version'];
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue