summaryrefslogtreecommitdiff
path: root/pre-commit.d/10warn-special-file
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 17:22:04 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 17:22:04 -0500
commitc01f3fe97eadce94a2f37908dc57f54d9af5b25a (patch)
treeb04553d480f117ec6ff8579aaab89a066cf76947 /pre-commit.d/10warn-special-file
parentdf87161ec2d79fc7074cf7bb44f9ac24bed638cc (diff)
fixes
Diffstat (limited to 'pre-commit.d/10warn-special-file')
-rwxr-xr-xpre-commit.d/10warn-special-file4
1 files changed, 3 insertions, 1 deletions
diff --git a/pre-commit.d/10warn-special-file b/pre-commit.d/10warn-special-file
index aa5c683..cb4d019 100755
--- a/pre-commit.d/10warn-special-file
+++ b/pre-commit.d/10warn-special-file
@@ -1,7 +1,9 @@
#!/bin/sh
set -e
-special=$(find -not -type d -not -type f -not -type l | grep -v /.git/)
+special=$(find -not -type d -not -type f -not -type l | grep -v /.git/) || true
if [ -n "$special" ]; then
echo "etckeeper warning: special files could cause problems with git:" >&2
echo "$special" >&2
fi
+
+true