diff options
Diffstat (limited to 'pre-commit.d/10warn-empty-directory')
| -rwxr-xr-x | pre-commit.d/10warn-empty-directory | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pre-commit.d/10warn-empty-directory b/pre-commit.d/10warn-empty-directory new file mode 100755 index 0000000..eed41ae --- /dev/null +++ b/pre-commit.d/10warn-empty-directory @@ -0,0 +1,7 @@ +#!/bin/sh +set -e +empty=$(find -type f -empty | grep -v /.git/) +if [ -n "$empty" ]; then + echo "etckeeper warning: empty directories, not tracked by git:" >&2 + echo "$empty" >&2 +fi |
