From 9ebd314606afb41e855994056f3e98577dcf19ff Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 22 Feb 2012 14:12:17 +0100 Subject: [PATCH] even better --- check-translations.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-translations.sh b/check-translations.sh index ea747baad..8226e45a5 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -69,8 +69,8 @@ EOF msgmerge -F -U "$X" "$VM".dat.pot >&2 msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated msgattrib --fuzzy "$X" | grep . > "$X".fuzzy || rm -f "$X".fuzzy - nu=$((`grep -c ^#: "$X".untranslated` + 0)) - nf=$((`grep -c ^#: "$X".fuzzy` + 0)) + nu=$((`grep -c ^#: "$X".untranslated 2>/dev/null` + 0)) + nf=$((`grep -c ^#: "$X".fuzzy 2>/dev/null` + 0)) n=$(($nu + $nf)) if [ $n -gt 0 ]; then echo "TODO for translation $X:" -- 2.39.2