[sysadmin-bin] fix typo which prevented any po file from ever being checked



commit 4c2ea5c10dc2bce4a6547dc9460668085bc3f4e8
Author: Olav Vitters <olav vitters nl>
Date:   Mon Jul 28 21:42:42 2014 +0200

    fix typo which prevented any po file from ever being checked

 git/pre-receive-check-po |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/git/pre-receive-check-po b/git/pre-receive-check-po
index 2e734c9..4292762 100755
--- a/git/pre-receive-check-po
+++ b/git/pre-receive-check-po
@@ -49,7 +49,7 @@ EOF
 
     # 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`
-    if [ "$result" != ""]; then
+    if [ "$result" != "" ]; then
       cat <<EOF >&2
 ---
 The following translation (.po) file should ensure the translated content ends with a 
semicolon.$branch_message
@@ -154,7 +154,7 @@ GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
 # false on the repository's config file 
 check_po=$(git config hooks.checkpo 2>/dev/null || echo true)
 
-if [ "$checkpo" != "true" ] ; then  
+if [ "$check_po" != "true" ] ; then  
     exit 0
 fi
 


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