diff options
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | clerk | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -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 @@ -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 : |