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)
This commit is contained in:
parent
c3b932c46e
commit
cbb77532c6
|
@ -10,6 +10,7 @@
|
|||
#include <thread>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <curl/curlver.h>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue