command-line: fall back to LOUNGE_HOME env variable
This commit is contained in:
parent
2bf6a2595b
commit
4a75a04402
@ -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