summaryrefslogtreecommitdiff
path: root/pre-commit.d/10warn-empty-directory
blob: eed41aeaff039bd6dd70fc27c92f18e2136fea79 (plain)
1
2
3
4
5
6
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