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

View File

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