From: Michael Tremer Date: Mon, 23 Feb 2009 04:19:18 +0000 (+0000) Subject: Old check did not work on debian :( X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8f4df1cd7dd6898e5bdc4fc6f43408fa627a7c8;p=ipfire-3.x.git Old check did not work on debian :( --- diff --git a/tools/make-git b/tools/make-git index ee3a1a54d..cbc39e45a 100755 --- a/tools/make-git +++ b/tools/make-git @@ -222,7 +222,7 @@ git_hook_pre_commit() { USERMAIL=$(git config --list | grep ^user.email) USERMAIL=${USERMAIL#user.email=} - if [[ ! "$USERMAIL" =~ "@ipfire\.org$" ]]; then + if ! egrep -q "@ipfire.org" <<< $USERMAIL; then echo "User email is not from ipfire.org. Can't commit." return 1 fi