summaryrefslogtreecommitdiff
path: root/util/lint/lint-stable-010-asm-syntax
diff options
context:
space:
mode:
Diffstat (limited to 'util/lint/lint-stable-010-asm-syntax')
-rwxr-xr-xutil/lint/lint-stable-010-asm-syntax11
1 files changed, 9 insertions, 2 deletions
diff --git a/util/lint/lint-stable-010-asm-syntax b/util/lint/lint-stable-010-asm-syntax
index 474a05d423..e1ce948f02 100755
--- a/util/lint/lint-stable-010-asm-syntax
+++ b/util/lint/lint-stable-010-asm-syntax
@@ -4,5 +4,12 @@
# DESCR: Check that we use a single assembler syntax
-LC_ALL=C export LC_ALL
-git grep -n "\.\(att\|intel\)_syntax\>" | grep -v '\.patch:'
+LINTDIR="$(
+ cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
+ pwd -P
+)"
+
+# shellcheck source=helper_functions.sh
+. "${LINTDIR}/helper_functions.sh"
+
+${GREP_FILES} -n "\.\(att\|intel\)_syntax\>" | grep -v '\.patch:'