Skip to content

Commit 07aa559

Browse files
committed
fix directory detection in check_spelling.sh when pre-commit hook is linked to prepare-commit.sh
1 parent e5fd81f commit 07aa559

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/spell_check/check_spelling.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
# -r: deactivate interactive mode to fix errors
1818
# optional argument: list of files to be checked
1919

20-
21-
22-
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
20+
DIR=$(git rev-parse --show-toplevel)/scripts/spell_check
2321

2422
AGIGNORE=${DIR}/.agignore
2523

0 commit comments

Comments
 (0)