You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/03/23 20:31:13 UTC
git commit: CB-6323 Fix harmless typo in superspawn (cmd -> c)
Repository: cordova-cli
Updated Branches:
refs/heads/master c0923f6cf -> 787cd6f99
CB-6323 Fix harmless typo in superspawn (cmd -> c)
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/787cd6f9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/787cd6f9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/787cd6f9
Branch: refs/heads/master
Commit: 787cd6f9988a6eee02f8d3bc169bdb9513196036
Parents: c0923f6
Author: Andrew Grieve <ag...@chromium.org>
Authored: Sun Mar 23 12:30:51 2014 -0700
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Sun Mar 23 12:30:51 2014 -0700
----------------------------------------------------------------------
src/superspawn.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/787cd6f9/src/superspawn.js
----------------------------------------------------------------------
diff --git a/src/superspawn.js b/src/superspawn.js
index 41bdcac..6916105 100644
--- a/src/superspawn.js
+++ b/src/superspawn.js
@@ -29,7 +29,7 @@ var events = require('./events');
function resolveWindowsExe(cmd) {
var winExtensions = ['.exe', '.cmd', '.bat', '.js', '.vbs'];
function isValidExe(c) {
- return winExtensions.indexOf(path.extname(cmd)) !== -1 && fs.existsSync(cmd);
+ return winExtensions.indexOf(path.extname(c)) !== -1 && fs.existsSync(c);
}
if (isValidExe(cmd)) {
return cmd;