File: 20warn-special-file

package info (click to toggle)
etckeeper 0.48
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 380 kB
  • ctags: 32
  • sloc: sh: 916; makefile: 44; python: 41
file content (12 lines) | stat: -rwxr-xr-x 354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

if [ "$VCS" = git ] || [ "$VCS" = hg ] || [ "$VCS" = bzr ] || [ "$VCS" = darcs ]; then
	special=$(find . -not -type d -not -type f -not -type l | grep -v '/\(.git\|.hg\|.bzr\|_darcs\)/') || true
	if [ -n "$special" ]; then
		echo "etckeeper warning: special files could cause problems with $VCS:" >&2
		echo "$special" >&2
	fi
fi

true