summarylogtreecommitdiffstats
path: root/fix-appstream-data.sh
blob: e6c365c059b5ae018c5c690b8471577ab4ac06e6 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
tmp="/tmp/fix-appstream-data"
while read -r archive; do
        if [[ $(zcat "${archive}" | grep -cm1 '<em>') == "1" ]]; then
            zcat "${archive}"  | sed 's|<em>||g;s|<\/em>||g;s|<strong>||g;s|<\/strong>||g' | gzip > "${tmp}"
            cp "${tmp}" "${archive}"
            rm "${tmp}"
            echo "      archive ${archive} fixed"
        fi
done