diff options
Diffstat (limited to 'pre-commit.d/10warn-empty-directory')
-rwxr-xr-x | pre-commit.d/10warn-empty-directory | 2 |
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 |