Skip to content

Commit

Permalink
Merge pull request #105 from skypanther/TIMOB-18538
Browse files Browse the repository at this point in the history
[TIMOB-18538] args to spawn must be an array
  • Loading branch information
cb1kenobi committed Feb 9, 2015
2 parents 8d3c8c1 + c3d154b commit e2e4211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/subprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ exports.run = function run(cmd, args, opts, callback) {
opts = {};
}

args = args ? (Array.isArray(args) ? args : [args]) : null;
args = args ? (Array.isArray(args) ? args : [args]) : [];

// when calling a Windows batch file, we need to escape ampersands in the command
if (process.platform == 'win32' && /\.bat$/.test(cmd)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [
"appcelerator"
],
"version": "0.2.23",
"version": "0.2.24",
"author": {
"name": "Appcelerator, Inc.",
"email": "npmjs@appcelerator.com"
Expand Down

0 comments on commit e2e4211

Please sign in to comment.