fix directory detection in check_spelling.sh when pre-commit hook is linked to prepare-commit.sh

This commit is contained in:
Juergen E. Fischer 2017-02-07 14:49:43 +01:00
parent e5fd81ffc3
commit 07aa5598f2

View File

@ -17,9 +17,7 @@
# -r: deactivate interactive mode to fix errors
# optional argument: list of files to be checked
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=$(git rev-parse --show-toplevel)/scripts/spell_check
AGIGNORE=${DIR}/.agignore