aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2017-08-20 18:32:17 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2017-08-20 18:32:17 +0200
commite6f1395f803110c82fe06632c7e1a106e35fc51b (patch)
tree7ab56359fa36e47de5ba642fe09470188566a54b
parent147980d0cf645345c5daca8cf0a2ac2787aff455 (diff)
downloadgeldschieberbot-e6f1395f803110c82fe06632c7e1a106e35fc51b.tar.gz
geldschieberbot-e6f1395f803110c82fe06632c7e1a106e35fc51b.zip
source config.sh in run.sh
-rw-r--r--Readme.md2
-rwxr-xr-xrun.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/Readme.md b/Readme.md
index 768f4cd..7ef7dc5 100644
--- a/Readme.md
+++ b/Readme.md
@@ -18,7 +18,7 @@ Copy config.sh.sample to config.sh and edit it to match your environment.
## Usage
If you have your config.sh in place you can just run
-`config.sh && run.sh`
+`./run.sh`
and your bot should be up and serving your needs.
Happy Geldschieben!
diff --git a/run.sh b/run.sh
index 21a4a50..5876ded 100755
--- a/run.sh
+++ b/run.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+# Source config.sh if it is available
+[[ -f config.sh ]] && source config.sh
+
# Create dir for all your received messages
mkdir msgs