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:
commit
ee5a64436c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user