From c6a1632839bb1205a2a3b128f7ce3ffc88e9b68e Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Sun, 15 Jan 2023 13:30:33 +0000 Subject: update chk-po to fix entry count --- chk-po | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'chk-po') diff --git a/chk-po b/chk-po index 0bd4823..1535246 100755 --- a/chk-po +++ b/chk-po @@ -10,12 +10,8 @@ for pofile in po/*pot po/*po; do entries=0 while read line ; do - findid="$(echo "$line" | grep 'msgid'|cut -d'"' -f2)" + findid="$(echo "$line" | grep '^msgid'|cut -d'"' -f2)" [[ ${#findid} = 0 ]] && continue - # Skip these two strings as they include a variable in the script. - if echo "$findid"|grep -q "that would be used"; then - continue - fi ((entries++)) if ! fgrep -q "$findid" remove-old-kernels; then echo "${pofile} - ${findid}" -- cgit v1.2.1