aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-30 12:10:49 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-30 12:10:49 +0000
commit2ed0893a08fc9bf25a2c778653a1fd223b2fc6d4 (patch)
treed4dc20742242ae83429df890f244d20f0b8d6777
parent3a8990ed325b75811fdd40e24d7f7b0687220492 (diff)
downloadremove-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
-rwxr-xr-xchk-po8
1 files 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
-
-