summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/pngcheck.sh
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2023-09-10 15:58:24 +0200
committerFedja Beader <fedja@protonmail.ch>2023-09-10 15:58:24 +0200
commit0a2d34be04d72b8982cc2cd488f7e6432d30b40b (patch)
tree8eca42bd37a93b9eae2200133dfd7ad47024ad09 /tools/ci/jobs/pngcheck.sh
parent3f68449293de30d84e39fef761ca5a4734f99c32 (diff)
downloadplus-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.gz
plus-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.bz2
plus-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.xz
plus-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.zip
trim useless uses of cat
Diffstat (limited to 'tools/ci/jobs/pngcheck.sh')
-rwxr-xr-xtools/ci/jobs/pngcheck.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ci/jobs/pngcheck.sh b/tools/ci/jobs/pngcheck.sh
index 2fd0a18d5..e4effc2bf 100755
--- a/tools/ci/jobs/pngcheck.sh
+++ b/tools/ci/jobs/pngcheck.sh
@@ -11,8 +11,8 @@ rm ${LOG2}
find -H . -type f -name "*.png" -exec pngcheck {} \; >${LOG1}
grep -v "32-bit RGB+alpha, non-interlaced, " ${LOG1} >${LOG2}
-export DATA=$(cat pngcheck2.log)
-if [[ -n "${DATA}" ]]; then
+
+if [[ -s "$LOG2" ]]; then
echo "Images must be in 32 bit RGBA and non-interlanced"
echo "Wrong images format found:"
cat ${LOG2}