From 3a591ebbd449fbf45cbefa461491814b4fbf7c35 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 9 Nov 2010 19:50:42 +0100 Subject: Tackle more git-status variants The reg-exp for catching the git status -s variants was too limited. This new reg-exp should be able to handle more variants better and safer. Signed-off-by: David Sommerseth --- eurephiadm/mk_buildinfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eurephiadm/mk_buildinfo.sh b/eurephiadm/mk_buildinfo.sh index 4f6a520..436bf81 100755 --- a/eurephiadm/mk_buildinfo.sh +++ b/eurephiadm/mk_buildinfo.sh @@ -36,7 +36,7 @@ if [[ $? = 0 ]]; then curdir=`pwd` srcroot="`dirname $gitdir`" cd $srcroot - modfiles="`git status -s | awk '/^[ADM\?]/{ printf " %s\\\n", $0 }'`" + modfiles="`git status -s | awk '/(|.)[ ADM\?]([ ADM\?])^/{ printf " %s\\\n", $0 }'`" [[ -z ${modfiles} ]] && state=0 || state=1 cd $curdir else -- cgit