diff options
| author | wodry <wodry@localhost> | 2018-06-18 16:57:26 +0200 |
|---|---|---|
| committer | wodry <wodry@localhost> | 2018-06-18 18:02:11 +0200 |
| commit | 927e1150bc207181f7d5b0948e87d04b737a1c27 (patch) | |
| tree | 11d8d7531b38628c1513b87b6224c4cbfa3ea8c2 | |
| parent | Merge #13438: Improve coverage of SHA256 SelfTest code (diff) | |
| download | discoin-927e1150bc207181f7d5b0948e87d04b737a1c27.tar.xz discoin-927e1150bc207181f7d5b0948e87d04b737a1c27.zip | |
Test: Harden lint-filenames.sh
| -rwxr-xr-x | test/lint/lint-filenames.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lint/lint-filenames.sh b/test/lint/lint-filenames.sh index 61e978fe7..9020567e6 100755 --- a/test/lint/lint-filenames.sh +++ b/test/lint/lint-filenames.sh @@ -10,7 +10,10 @@ export LC_ALL=C EXIT_CODE=0 -OUTPUT=$(git ls-files -- "*.cpp" "*.h" "*.py" "*.sh" | grep -vE '^[a-z0-9_./-]+$' | grep -vE 'src/(secp256k1|univalue)/') +OUTPUT=$(git ls-files --full-name -- "*.[cC][pP][pP]" "*.[hH]" "*.[pP][yY]" "*.[sS][hH]" | \ + grep -vE '^[a-z0-9_./-]+$' | \ + grep -vE '^src/(secp256k1|univalue)/') + if [[ ${OUTPUT} != "" ]]; then echo "Use only lowercase alphanumerics (a-z0-9), underscores (_), hyphens (-) and dots (.)" echo "in source code filenames:" |