diff options
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | src/index.ts | 2 |
2 files changed, 3 insertions, 5 deletions
@@ -4,8 +4,6 @@ The [Ostfalia SPlus lecture schedule](http://splus.ostfalia.de) is complicated t ## Setup -### General +Run `npm install` to install the necessary dependencies. Copy `config-example.json`. -Run `npm install` to install the necessary dependencies. - -Copy and adjust `config-example.json` and run `npm start config.json`. +Start with `npm start ./config.json` or export `SPLUS_CONFIG=./config.json`. `./config-example.json` is the default configuration path. diff --git a/src/index.ts b/src/index.ts index bb3b6c7..eb496ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,4 +60,4 @@ async function main(configPath) { fs.writeFileSync(config.icsPath, cal.toString()); } -main(process.argv[2] || './config-example.json').catch(console.log); +main(process.env.SPLUS_CONFIG || process.argv[2] || './config-example.json').catch(console.log); |
