Skip to content

Commit 40d91a2

Browse files
authored
Merge pull request #377 from xwartz/master
Fix moduleName undefined
2 parents f8293c1 + 863c704 commit 40d91a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

JPushConfiguration.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ var spath = require('path');
44
var os = require('os');
55

66
// add other link flag
7-
var appKey = process.argv.splice(2)[0];
7+
var appKey = process.argv.slice(2)[0];
88
if (appKey == undefined || appKey == null) {
99
console.log("error 没有输入 appKey 参数");
1010
return;
1111
}
1212

13-
var moduleName = process.argv.splice(2)[1];
13+
var moduleName = process.argv.slice(2)[1];
1414
if (moduleName == undefined || moduleName == null) {
1515
console.log("没有输入 moduleName, 将使用默认模块名: app");
1616
moduleName = "app";
@@ -323,4 +323,4 @@ function configureGradle(path) {
323323
console.log("Did not find \"compile\" in path: " + path);
324324
}
325325
}
326-
}
326+
}

0 commit comments

Comments
 (0)