blob: c1fd8f729dc7128a89a9b79a1021b7ec8f01dbe7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
set -e
if [ "$VCS" = git ] || [ "$VCS" = hg ] || [ "$VCS" = bzr ]; then
hardlinks=$(find -type f -not -links 1 | grep -v /.git/ | grep -v /.hg/ | grep -v /.bzr/) || true
if [ -n "$hardlinks" ]; then
echo "etckeeper warning: hardlinked files could cause problems with $VCS:" >&2
echo "$hardlinks" >&2
fi
fi
|