From 443afc8b5e035c497ad224efee2edf6dbeb5bc0b Mon Sep 17 00:00:00 2001 From: velvettear Date: Sat, 19 Feb 2022 02:28:37 +0100 Subject: [PATCH] fixed default config location --- ninwa.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ninwa.js b/ninwa.js index 020d346..af313b2 100644 --- a/ninwa.js +++ b/ninwa.js @@ -9,13 +9,9 @@ logger.info(packageJSON.name + ' ' + packageJSON.version + ' starting...'); handleInterrupts(); -const config = process.argv[2] || './config.json'; +const config = process.argv[2] || __dirname + '/config.json'; util.fileExists(config) - .catch((err) => { - logger.error(err); - exit(1); - }) .then(watchers.initialize) .then(watchers.start) .catch((err) => {