diff --git a/config.js b/config.js index 5f47dbd..b7de251 100644 --- a/config.js +++ b/config.js @@ -80,7 +80,7 @@ let config = convict({ userConfig = path.join(os.homedir(), '.config/seance.yaml') if (fs.existsSync(userConfig)) { config.loadFile(userConfig) -} else if (!runSetup) { +} else if (process.argv[2] != 'setup') { console.warn( 'Warning: no config file detected! ' + 'Please run `seance setup` to configure your system' @@ -102,4 +102,3 @@ allConf = config.getProperties() allConf.validated = validated module.exports = allConf -