do not need -d'^I' argument for cut command, it's easy input wrong char for invisible char without copying (#1271)

This commit is contained in:
AlexF 2018-05-30 18:45:32 +08:00 committed by Daniel Marjamäki
parent e1014253ef
commit 99bb0d975c
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ fi
# We should pass only added or modified C/C++ source files to cppcheck.
changed_files=$(git diff-index --cached $against | \
grep -E '[MA] .*\.(c|cpp|cc|cxx)$' | cut -d' ' -f 2)
grep -E '[MA] .*\.(c|cpp|cc|cxx)$' | cut -f 2)
if [ -n "$changed_files" ]; then
cppcheck --error-exitcode=1 $changed_files