Fix js script argument counting.

This commit is contained in:
Oliver Hamlet
2015-08-27 15:58:08 +01:00
parent ca4b31dd0b
commit c9492cde2d
2 changed files with 10 additions and 10 deletions
+7 -7
View File
@@ -7,13 +7,6 @@ var child_process = require('child_process');
var path = require('path');
var fs = require('fs-extra');
if (process.argc < 3) {
var root_path = process.argv[2];
} else {
var root_path = '.';
}
var temp_path = path.join(root_path, 'build', 'archive.tmp');
function vulcanize() {
return child_process.execFileSync('node', [
'scripts/vulcanize.js',
@@ -162,6 +155,13 @@ function createApiArchive(dest_path) {
fs.removeSync(temp_path);
}
if (process.argv.length < 3) {
var root_path = '.';
} else {
var root_path = process.argv[2];
}
var temp_path = path.join(root_path, 'build', 'archive.tmp');
var git_desc = getGitDescription();
vulcanize();
createAppArchive(path.join(root_path, 'build', 'LOOT ' + git_desc + '.7z'));
+3 -3
View File
@@ -5,10 +5,10 @@ var child_process = require('child_process');
var path = require('path');
var fs = require('fs');
if (process.argc < 3) {
var root_path = process.argv[2];
} else {
if (process.argv.length < 3) {
var root_path = '.';
} else {
var root_path = process.argv[2];
}
var output_path = path.join(root_path, 'build', 'Release', 'resources', 'ui');