diff options
author | Barry Jackson <barjac@mageia.org> | 2023-01-15 13:30:33 +0000 |
---|---|---|
committer | Barry Jackson <barjac@mageia.org> | 2023-01-15 13:30:33 +0000 |
commit | c6a1632839bb1205a2a3b128f7ce3ffc88e9b68e (patch) | |
tree | 79a42fe5d96246ec04e5350b13620e316fd60fbf /chk-po | |
parent | a6ef65bd6f047d153567574a399bbd08f9a8b787 (diff) | |
download | remove-old-kernels-c6a1632839bb1205a2a3b128f7ce3ffc88e9b68e.tar remove-old-kernels-c6a1632839bb1205a2a3b128f7ce3ffc88e9b68e.tar.gz remove-old-kernels-c6a1632839bb1205a2a3b128f7ce3ffc88e9b68e.tar.bz2 remove-old-kernels-c6a1632839bb1205a2a3b128f7ce3ffc88e9b68e.tar.xz remove-old-kernels-c6a1632839bb1205a2a3b128f7ce3ffc88e9b68e.zip |
update chk-po to fix entry count
Diffstat (limited to 'chk-po')
-rwxr-xr-x | chk-po | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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}" |