Skip to content

Commit

Permalink
better homedir detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 22, 2014
1 parent a7baa58 commit 514eb8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/bower
Expand Up @@ -6,7 +6,7 @@ process.bin = process.title = 'bower';
var Q = require('q');
var mout = require('mout');
var Logger = require('bower-logger');
var osenv = require('osenv');
var userHome = require('user-home');
var bower = require('../lib');
var pkg = require('../package.json');
var cli = require('../lib/util/cli');
Expand Down Expand Up @@ -125,8 +125,8 @@ analytics.setup(bower.config).then(function () {
});

// Warn if HOME is not SET
if (!osenv.home()) {
logger.warn('no-home', 'HOME not set, user configuration will not be loaded');
if (!userHome) {
logger.warn('no-home', 'HOME environment variable not set. User config will not be loaded.');
}

if (bower.config.interactive) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -42,7 +42,6 @@
"mout": "~0.9.0",
"nopt": "~3.0.0",
"opn": "~1.0.0",
"osenv": "0.1.0",
"p-throttler": "0.1.0",
"promptly": "0.2.0",
"q": "~1.0.1",
Expand All @@ -56,6 +55,7 @@
"tar-fs": "~1.0.0",
"tmp": "0.0.23",
"update-notifier": "0.2.0",
"user-home": "^1.1.0",
"which": "~1.0.5"
},
"devDependencies": {
Expand Down

0 comments on commit 514eb8f

Please sign in to comment.