Merge pull request #402 from williamboman/feat/use-LOUNGE_HOME-env

command-line: fall back to LOUNGE_HOME env variable
This commit is contained in:
Max-P 2016-06-13 14:34:33 -04:00 committed by GitHub
commit ee5a64436c
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ program.option(" --home <path>" , "home path");
var argv = program.parseOptions(process.argv);
Helper.setHome(program.home);
Helper.setHome(program.home || process.env.LOUNGE_HOME);
if (!fs.existsSync(Helper.CONFIG_PATH)) {
fsextra.ensureDirSync(Helper.HOME);