summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2014-07-28 19:42:42 (GMT)
committerOlav Vitters <olav@vitters.nl>2014-07-28 19:42:42 (GMT)
commit4c2ea5c10dc2bce4a6547dc9460668085bc3f4e8 (patch)
treec41a7166895dc950273a69db51e413eca4680ba0
parent1bcb0f3383c298b7e3be718ded7964aafbd7e5ab (diff)
downloadsysadmin-bin-4c2ea5c10dc2bce4a6547dc9460668085bc3f4e8.zip
sysadmin-bin-4c2ea5c10dc2bce4a6547dc9460668085bc3f4e8.tar.xz
fix typo which prevented any po file from ever being checked
-rwxr-xr-xgit/pre-receive-check-po4
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