Skip to content

Commit

Permalink
Deprecate getUserHome
Browse files Browse the repository at this point in the history
  • Loading branch information
c3bryant committed Sep 7, 2017
1 parent 27443b7 commit 247d40d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/replace_all.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
npm run-script insert-placeholder-values
*/
var fs = require('fs');
var os = require('os');
var REPLACEMENT_TYPE = process.argv[2];
var myEnv = require(getUserHome() + '/.campusmobile/env.js');
var myEnv = require(os.homedir() + '/.campusmobile/env.js');

var APP_SETTINGS_PATH = './app/AppSettings.js';

Expand Down Expand Up @@ -92,7 +93,3 @@ function makeReplacements(FILE_PATH, REPLACEMENT_TYPE, REPLACEMENTS) {
}
});
}

function getUserHome() {
return process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];
}

0 comments on commit 247d40d

Please sign in to comment.