summaryrefslogtreecommitdiff
path: root/pre-commit.d/10warn-special-file
blob: aa5c683561215331cfc4059089c486cfbf46ad5b (plain)
1
2
3
4
5
6
7
#!/bin/sh
set -e
special=$(find -not -type d -not -type f -not -type l | grep -v /.git/)
if [ -n "$special" ]; then
	echo "etckeeper warning: special files could cause problems with git:" >&2
	echo "$special" >&2
fi