diff options
author | Barry Jackson <barjac@mageia.org> | 2023-01-30 12:10:49 +0000 |
---|---|---|
committer | Barry Jackson <barjac@mageia.org> | 2023-01-30 12:10:49 +0000 |
commit | 2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4 (patch) | |
tree | d4dc20742242ae83429df890f244d20f0b8d6777 /chk-po | |
parent | 3a8990ed325b75811fdd40e24d7f7b0687220492 (diff) | |
download | remove-old-kernels-2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4.tar remove-old-kernels-2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4.tar.gz remove-old-kernels-2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4.tar.bz2 remove-old-kernels-2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4.tar.xz remove-old-kernels-2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4.zip |
clean chk-po script
Diffstat (limited to 'chk-po')
-rwxr-xr-x | chk-po | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 - - |