Skip to content

Commit

Permalink
Fix in.js. Fix '.' being included in version
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboPhred committed Apr 29, 2016
1 parent 4dc03ee commit 58a4341
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion in.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
const exec = require("child_process").exec;
const xml2js = require("xml2js");

const shared = require("./shared");

const success = shared.success;
const fail = shared.fail;
const hide = shared.hide;
Expand Down Expand Up @@ -79,7 +81,7 @@ process.stdin.on("data", stdin => {
fail(new Error('unexpected svn output. expected revision, got "' + lines.slice(lines.length - 5).join("\n") + '"'));
}

const rev = revLine.substr(header.length, revLine.length - header.length - 1);
const rev = revLine.substr(header.length, revLine.length - header.length - 2);
success({
"version": {
"revision": rev
Expand Down

0 comments on commit 58a4341

Please sign in to comment.