Make lint-includes.sh work from any directory

This commit is contained in:
Kristaps Kaupe 2019-08-31 00:19:49 +03:00 committed by Jack Grigg
parent bdaccd0f06
commit d89f31dc43
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@
export LC_ALL=C
# cd to root folder of git repo for git ls-files to work properly
cd "$(dirname $0)/../.." || exit 1
filter_suffix() {
git ls-files | grep -E "^src/.*\.${1}"'$' | grep -Ev "/(leveldb|secp256k1|univalue)/"
}