mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-08 13:44:39 +02:00
Supply config path to main.js and oputil.js, rather than specific config file
This commit is contained in:
parent
32557975d9
commit
521e38d7e9
4 changed files with 11 additions and 8 deletions
|
@ -45,11 +45,12 @@ function printUsageAndSetExitCode(errMsg, exitCode) {
|
|||
}
|
||||
|
||||
function getDefaultConfigPath() {
|
||||
return './config/config.hjson';
|
||||
return './config/';
|
||||
}
|
||||
|
||||
function getConfigPath() {
|
||||
return argv.config ? argv.config : config.getDefaultPath();
|
||||
const baseConfigPath = argv.config ? argv.config : config.getDefaultPath();
|
||||
return baseConfigPath + 'config.hjson';
|
||||
}
|
||||
|
||||
function initConfig(cb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue