From cbb77532c69d232ac57f43c5146029d02cc00ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 2 Aug 2016 22:00:41 +0200 Subject: [PATCH] Tools: Fix lint by removing unneeded awk git diff --name-only already took care of only returning the name, so the awk is unneeded and makes it return only empty file names. Facepalm, I know. Sorry for this oversight. (Also fixes something that lint didn't catch because of this) --- Source/Core/Common/Analytics.h | 1 + Tools/lint.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Analytics.h b/Source/Core/Common/Analytics.h index 45ff2698f5..816785ee67 100644 --- a/Source/Core/Common/Analytics.h +++ b/Source/Core/Common/Analytics.h @@ -10,6 +10,7 @@ #include #include #include + #include #include "Common/CommonTypes.h" diff --git a/Tools/lint.sh b/Tools/lint.sh index 6802e7abb5..841c7d0d92 100755 --- a/Tools/lint.sh +++ b/Tools/lint.sh @@ -5,7 +5,7 @@ fail=0 # Check for clang-format issues. -for f in $(git diff --name-only --diff-filter=ACMRTUXB | awk '{print $2}'); do +for f in $(git diff --name-only --diff-filter=ACMRTUXB); do if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then continue fi