diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-09 19:50:42 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-09 19:50:42 +0100 |
commit | 3a591ebbd449fbf45cbefa461491814b4fbf7c35 (patch) | |
tree | 0dc359b518213414a92719a7d6e6ed829b1c9337 /eurephiadm | |
parent | 42834bd8d06ca68938c652c2f32250589ac350e9 (diff) | |
download | eurephia-3a591ebbd449fbf45cbefa461491814b4fbf7c35.tar.gz eurephia-3a591ebbd449fbf45cbefa461491814b4fbf7c35.tar.xz eurephia-3a591ebbd449fbf45cbefa461491814b4fbf7c35.zip |
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 <dazo@users.sourceforge.net>
Diffstat (limited to 'eurephiadm')
-rwxr-xr-x | eurephiadm/mk_buildinfo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |