PageRenderTime 85ms CodeModel.GetById 77ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/etckeeper/pre-commit.d/20warn-special-file

http://github.com/brinkman83/bashrc
Shell | 12 lines | 9 code | 2 blank | 1 comment | 6 complexity | 03b44959d2414b9cd566c5c667100458 MD5 | raw file
 1#!/bin/sh
 2set -e
 3
 4if [ "$VCS" = git ] || [ "$VCS" = hg ] || [ "$VCS" = bzr ] || [ "$VCS" = darcs ]; then
 5	special=$(find -not -type d -not -type f -not -type l | grep -v '/\(.git\|.hg\|.bzr\|_darcs\)/') || true
 6	if [ -n "$special" ]; then
 7		echo "etckeeper warning: special files could cause problems with $VCS:" >&2
 8		echo "$special" >&2
 9	fi
10fi
11
12true