Skip to content

Commit

Permalink
Merge pull request #39 from bezda/patch-1
Browse files Browse the repository at this point in the history
Fix version lookup
  • Loading branch information
hypery2k committed Nov 1, 2016
2 parents 0046a71 + 7346589 commit 7068de9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ whichDeferred.promise
}
})
.then(function (stdout) {
var version = stdout.trim();
var regex = /^Version: ([0-9\.]+)$/
var result = stdout.trim().match(regex);
var version = result[1];
if (helper.version == version) {
writeLocationFile(galenPath);
log.info('galenframework is already installed at', galenPath + '.');
Expand Down

0 comments on commit 7068de9

Please sign in to comment.