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

true