diff options
Diffstat (limited to 'chk-po')
-rwxr-xr-x | chk-po | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -6,17 +6,21 @@ clear for pofile in po/*; do echo "Checking - ${pofile}" + entries=0 while read line ; do - #echo $line - findstr="$(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 "$findstr"|grep -q "that would be used"; then + if echo "$findid"|grep -q "that would be used"; then continue fi - if ! fgrep -q "$findstr" remove-old-kernels; then - echo "${pofile} - ${findstr}" + ((entries++)) + if ! fgrep -q "$findid" remove-old-kernels; then + echo "${pofile} - ${findid}" fi done < "${pofile}" -# echo "" + echo strings - $entries done + |