[sysadmin-bin] avoid matching across multiple lines



commit 3c07e3744ba10be8cacf603d516ccb9ded862e18
Author: Olav Vitters <olav vitters nl>
Date:   Mon Jul 28 22:15:55 2014 +0200

    avoid matching across multiple lines

 git/pre-receive-check-po |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/git/pre-receive-check-po b/git/pre-receive-check-po
index 4292762..ce978b2 100755
--- a/git/pre-receive-check-po
+++ b/git/pre-receive-check-po
@@ -48,7 +48,7 @@ EOF
     fi
 
     # Do a simplistic check to for keyword not ending with a semicolon
-    result=`git cat-file blob "$rev:$path" | sed -rn '/^#: .*\.desktop/{:start /\nmsgstr/!{N;b start};/msgid 
[^\n]+;"/{/msgstr [^\n]+;"/!p}}' 2>&1`
+    result=`git cat-file blob "$rev:$path" | sed -rn '/^#: [^\n]+\.desktop/{:start /\nmsgstr/!{N;b 
start};/msgid [^\n]+;"/{/msgstr [^\n]+;"/!p}}' 2>&1`
     if [ "$result" != "" ]; then
       cat <<EOF >&2
 ---


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]