summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2018-09-16 15:07:02 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2018-09-16 15:07:02 +0200
commit871f7b81c9626f896dfcb13977b567a44d800ce3 (patch)
tree02412a9d637502b7145ca8b22624837c24ad2cdf
parent3f90f2f626b6fec3c5564c7b0c7aa8914b8ef9a2 (diff)
parentb1ca29140b641adc83e16bca5e21d8e31fd56ecd (diff)
downloadsplus-871f7b81c9626f896dfcb13977b567a44d800ce3.tar.gz
splus-871f7b81c9626f896dfcb13977b567a44d800ce3.zip
Merge branch 'master' of github.com:schneefux/splus
-rw-r--r--README.md6
-rw-r--r--src/index.ts2
2 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index b93ff78..fb3f15e 100644
--- a/README.md
+++ b/README.md
@@ -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);