Skip to content

Commit

Permalink
Merge pull request #2 from tearmann/master
Browse files Browse the repository at this point in the history
update for windows env variables
  • Loading branch information
dominictarr committed Jan 26, 2014
2 parents 77b9084 + 67a45e8 commit 5ce70e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -13,7 +13,7 @@ module.exports = function (name) {
//this should never happen, but just to be sure...
if(IDS[name]) return IDS[name]

var id_file = join(process.env.HOME, '.udid-' + name)
var id_file = join(process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'], '.udid-' + name)

var UDID = (function () {

Expand Down

0 comments on commit 5ce70e8

Please sign in to comment.