command-line: fall back to LOUNGE_HOME env variable

This commit is contained in:
William Boman 2016-06-13 20:22:58 +02:00
parent 2bf6a2595b
commit 4a75a04402

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);