summaryrefslogtreecommitdiff
path: root/pre-commit.d/10warn-empty
blob: 8dcb3575b96d63fa6996bc07c5496b31a50ace2d (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 "warning: empty directories, not tracked by git:" >&2
	echo "$empty" >&2
fi