summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/gitconfig/pre-commit4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/gitconfig/pre-commit b/util/gitconfig/pre-commit
index 257f6964bb..1c04bc34e9 100755
--- a/util/gitconfig/pre-commit
+++ b/util/gitconfig/pre-commit
@@ -2,8 +2,8 @@
%MAKE% lint-stable
PATCHDIFF=$(git diff --cached)
-if echo "$PATCHDIFF" | grep -q "@@"; then
+if printf "%s\n" "$PATCHDIFF" | grep -q "@@"; then
echo
echo "Running checkpatch"
- echo "$PATCHDIFF" | util/lint/checkpatch.pl --no-signoff -q -
+ printf "%s\n" "$PATCHDIFF" | util/lint/checkpatch.pl --no-signoff -q -
fi