aboutsummaryrefslogtreecommitdiff
path: root/test/lint/lint-filenames.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/lint/lint-filenames.sh')
-rwxr-xr-xtest/lint/lint-filenames.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lint/lint-filenames.sh b/test/lint/lint-filenames.sh
index 61e978fe79..5391e43d91 100755
--- a/test/lint/lint-filenames.sh
+++ b/test/lint/lint-filenames.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
@@ -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:"