Skip to content

Commit 99bb0d9

Browse files
AlexFeng123danmar
authored andcommitted
do not need -d'^I' argument for cut command, it's easy input wrong char for invisible char without copying (#1271)
1 parent e101425 commit 99bb0d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/git-pre-commit-cppcheck

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838

3939
# We should pass only added or modified C/C++ source files to cppcheck.
4040
changed_files=$(git diff-index --cached $against | \
41-
grep -E '[MA] .*\.(c|cpp|cc|cxx)$' | cut -d' ' -f 2)
41+
grep -E '[MA] .*\.(c|cpp|cc|cxx)$' | cut -f 2)
4242

4343
if [ -n "$changed_files" ]; then
4444
cppcheck --error-exitcode=1 $changed_files

0 commit comments

Comments
 (0)