From 9180fb7191492043b77657da7e9175704bbb9ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sat, 8 Apr 2017 15:03:11 +0100 Subject: [PATCH] Only check .po files. --- statistics | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/statistics b/statistics index b3ce51f..2c88b21 100755 --- a/statistics +++ b/statistics @@ -82,8 +82,9 @@ for BRANCH in $BRANCHES; do graph " >> $STATSFILE - for file in `ls "$BRANCH"`; do - filename=`echo $file | sed s/.po//` + for files in $BRANCH/*.po; do + file=`basename $files` + filename=`basename $file .po` npo=$(($npo + 1)); has_errors="no"; has_warnings="no"; # Extract the declared charset, may be we use this in future.