diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2018-09-16 15:07:02 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2018-09-16 15:07:02 +0200 |
| commit | 871f7b81c9626f896dfcb13977b567a44d800ce3 (patch) | |
| tree | 02412a9d637502b7145ca8b22624837c24ad2cdf | |
| parent | 3f90f2f626b6fec3c5564c7b0c7aa8914b8ef9a2 (diff) | |
| parent | b1ca29140b641adc83e16bca5e21d8e31fd56ecd (diff) | |
| download | splus-871f7b81c9626f896dfcb13977b567a44d800ce3.tar.gz splus-871f7b81c9626f896dfcb13977b567a44d800ce3.zip | |
Merge branch 'master' of github.com:schneefux/splus
| -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); |
