aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-15 13:30:33 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-15 13:30:33 +0000
commitc6a1632839bb1205a2a3b128f7ce3ffc88e9b68e (patch)
tree79a42fe5d96246ec04e5350b13620e316fd60fbf
parenta6ef65bd6f047d153567574a399bbd08f9a8b787 (diff)
downloadremove-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
-rwxr-xr-xchk-po6
1 files changed, 1 insertions, 5 deletions
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}"