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:
Léo Lam 2016-08-02 22:00:41 +02:00
parent c3b932c46e
commit cbb77532c6
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#include <thread>
#include <utility>
#include <vector>
#include <curl/curlver.h>
#include "Common/CommonTypes.h"

View File

@ -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