mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-03 14:22:19 +02:00
config: move setHome to top
This commit is contained in:
parent
549c445853
commit
436ee084e3
|
@ -8,6 +8,8 @@ import Helper from "../helper";
|
|||
import Config from "../config";
|
||||
import Utils from "./utils";
|
||||
|
||||
Config.setHome(process.env.THELOUNGE_HOME || Utils.defaultHome());
|
||||
|
||||
const program = new Command("thelounge");
|
||||
program
|
||||
.version(Helper.getVersion(), "-v, --version")
|
||||
|
@ -21,8 +23,6 @@ program
|
|||
// Parse options from `argv` returning `argv` void of these options.
|
||||
const argvWithoutOptions = program.parseOptions(process.argv);
|
||||
|
||||
Config.setHome(process.env.THELOUNGE_HOME || Utils.defaultHome());
|
||||
|
||||
// Check config file owner and warn if we're running under a different user
|
||||
try {
|
||||
verifyFileOwner();
|
||||
|
|
Loading…
Reference in a new issue