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:
parent
e1014253ef
commit
99bb0d975c
|
@ -38,7 +38,7 @@ fi
|
||||||
|
|
||||||
# We should pass only added or modified C/C++ source files to cppcheck.
|
# We should pass only added or modified C/C++ source files to cppcheck.
|
||||||
changed_files=$(git diff-index --cached $against | \
|
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
|
if [ -n "$changed_files" ]; then
|
||||||
cppcheck --error-exitcode=1 $changed_files
|
cppcheck --error-exitcode=1 $changed_files
|
||||||
|
|
Loading…
Reference in New Issue