Skip to content

Commit 490da63

Browse files
committed
Make lint-includes.sh work from any directory
1 parent f5db3f2 commit 490da63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/lint/lint-includes.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
export LC_ALL=C
1212
IGNORE_REGEXP="/(leveldb|secp256k1|univalue)/"
1313

14+
# cd to root folder of git repo for git ls-files to work properly
15+
cd "$(dirname $0)/../.." || exit 1
16+
1417
filter_suffix() {
1518
git ls-files | grep -E "^src/.*\.${1}"'$' | grep -Ev "${IGNORE_REGEXP}"
1619
}

0 commit comments

Comments
 (0)