summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/imagemagiccheck.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/imagemagiccheck.sh
parent3f68449293de30d84e39fef761ca5a4734f99c32 (diff)
downloadmanaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.gz
manaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.bz2
manaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.tar.xz
manaverse-0a2d34be04d72b8982cc2cd488f7e6432d30b40b.zip
trim useless uses of cat
Diffstat (limited to 'tools/ci/jobs/imagemagiccheck.sh')
-rwxr-xr-xtools/ci/jobs/imagemagiccheck.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/ci/jobs/imagemagiccheck.sh b/tools/ci/jobs/imagemagiccheck.sh
index 564026f1c..6d2e75060 100755
--- a/tools/ci/jobs/imagemagiccheck.sh
+++ b/tools/ci/jobs/imagemagiccheck.sh
@@ -10,9 +10,8 @@ rm ${LOG}
find -H $DIR -type f -name "*.png" -exec ./tools/ci/scripts/icccheckfile.sh {} \; >${LOG}
check_error $?
-export RES=$(cat ${LOG})
-if [[ -n "${RES}" ]]; then
- echo "Detected icc profiles"
+if [[ -s "$LOG" ]]; then
+ echo "Detected icc profiles:"
cat ${LOG}
exit 1
fi