Skip to content

Commit

Permalink
Fix isWindows check in util.js to support win64
Browse files Browse the repository at this point in the history
  • Loading branch information
agrieve authored and stevengill committed Jan 30, 2014
1 parent 1a871a6 commit c708712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c708712

Please sign in to comment.