Permalink
Browse files

Fix isWindows check in util.js to support win64

  • Loading branch information...
1 parent 1a871a6 commit c7087120b5b188a7e8d1e63b221b5480520619c4 @agrieve agrieve committed with stevengill Jan 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/util.js
View
2 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);

0 comments on commit c708712

Please sign in to comment.