summaryrefslogtreecommitdiff
path: root/pre-commit.d/10warn-empty-directory
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 18:13:00 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 18:13:00 -0500
commitb42d7c03371d9f1dab89a8d7a3e5bb85e8774e14 (patch)
treea9217c27267937b82069047b263d1fb34e3adc10 /pre-commit.d/10warn-empty-directory
parente737d1795d0acbaba09412b3b969b33fc8956b85 (diff)
finishing touches etc
Diffstat (limited to 'pre-commit.d/10warn-empty-directory')
-rwxr-xr-xpre-commit.d/10warn-empty-directory2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit.d/10warn-empty-directory b/pre-commit.d/10warn-empty-directory
index 3f6cdaa..ef70b72 100755
--- a/pre-commit.d/10warn-empty-directory
+++ b/pre-commit.d/10warn-empty-directory
@@ -1,6 +1,6 @@
#!/bin/sh
set -e
-empty=$(find -type f -empty | grep -v /.git/) || true
+empty=$(find -type d -empty | grep -v /.git/) || true
if [ -n "$empty" ]; then
echo "etckeeper warning: empty directories, not tracked by git:" >&2
echo "$empty" >&2