You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/01/31 00:16:58 UTC

[09/15] git commit: Fix isWindows check in util.js to support win64

Fix isWindows check in util.js to support win64


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/c7087120
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/c7087120
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/c7087120

Branch: refs/heads/master
Commit: c7087120b5b188a7e8d1e63b221b5480520619c4
Parents: 1a871a6
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Jan 27 21:50:51 2014 -0500
Committer: Steven Gill <st...@gmail.com>
Committed: Thu Jan 30 15:11:54 2014 -0800

----------------------------------------------------------------------
 src/util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/c7087120/src/util.js
----------------------------------------------------------------------
diff --git a/src/util.js b/src/util.js
index ef6cb34..164c322 100644
--- a/src/util.js
+++ b/src/util.js
@@ -22,7 +22,7 @@ var fs            = require('fs'),
     shell         = require('shelljs');
 
 // Global configuration paths
-var HOME = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];
+var HOME = process.env[(process.platform.slice(0, 3) == 'win') ? 'USERPROFILE' : 'HOME'];
 var global_config_path = path.join(HOME, '.cordova');
 var lib_path = path.join(global_config_path, 'lib');
 shell.mkdir('-p', lib_path);