From 2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4 Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Mon, 30 Jan 2023 12:10:49 +0000 Subject: clean chk-po script --- chk-po | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chk-po b/chk-po index 1535246..c7ff2e6 100755 --- a/chk-po +++ b/chk-po @@ -8,16 +8,14 @@ clear for pofile in po/*pot po/*po; do echo "Checking - ${pofile}" entries=0 - while read line ; do + while read -r line ; do findid="$(echo "$line" | grep '^msgid'|cut -d'"' -f2)" - [[ ${#findid} = 0 ]] && continue + (( ${#findid} == 0 )) && continue ((entries++)) - if ! fgrep -q "$findid" remove-old-kernels; then + if ! grep -F -q "$findid" remove-old-kernels; then echo "${pofile} - ${findid}" fi done < "${pofile}" echo strings - $entries done - - -- cgit v1.2.1