summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rwxr-xr-xclerk6
2 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index e73c97e..e01d1e9 100644
--- a/README.md
+++ b/README.md
@@ -56,8 +56,8 @@ e.g. adding more than one song.
# Installation
-1. Install dependecies (each binary needs to be in your $PATH)
-2. Copy config.example to $HOME/.config/clerk/config and edit it.
+1. Install dependencies (each binary needs to be in your $PATH)
+2. Copy config.clerk to $HOME/.config/clerk/config and edit it.
3. Copy clerk and clerk_helper to $PATH
4. Run clerk
diff --git a/clerk b/clerk
index 823c1cb..f3ce4f0 100755
--- a/clerk
+++ b/clerk
@@ -2,6 +2,12 @@
shopt -s globstar
+if [[ ! -f $HOME/.config/clerk/config ]]; then
+ echo "Error: could not find configuration file \"$HOME/.config/clerk/config\""
+ echo "You can use the provided example configuration file (config.clerk), copy it to the above location and edit it to your needs."
+ exit
+fi
+
source $HOME/.config/clerk/config
if [[ -f $HOME/.config/clerk/helper_config ]]; then
: