Skip to content

Commit

Permalink
Fixed issue where executing Scribe from outside the Scribe directory …
Browse files Browse the repository at this point in the history
…caused errors.
  • Loading branch information
n44h committed Sep 10, 2022
1 parent 8fa7e58 commit 0432130
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scribe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
# shellcheck source=config/scribe.conf


# Get the Scribe directory.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# cd to the Scribe directory.
cd "$SCRIPT_DIR" || exit 1


# Paths to directories.
CONFIG_DIR="config"
LOG_DIR="logs"
Expand Down

0 comments on commit 0432130

Please sign in to comment.