Do not fail on 0%

This commit is contained in:
Michal Čihař
2011-04-05 15:23:49 +02:00
parent 049e97e42a
commit e269e34a4f

View File

@@ -28,7 +28,7 @@ check() {
else
UNTRANSLATED=0
fi
PERCENT=`expr 100 \* $TRANSLATED / \( $TRANSLATED + $FUZZY + $UNTRANSLATED \)`
PERCENT=`expr 100 \* $TRANSLATED / \( $TRANSLATED + $FUZZY + $UNTRANSLATED \) || true`
if [ $PERCENT -lt $THRESHOLD ] ; then
echo "Removing $lang, only $PERCENT%"