diff options
author | Fedja Beader <fedja@protonmail.ch> | 2023-09-10 15:58:24 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2023-09-10 15:58:24 +0200 |
commit | 0a2d34be04d72b8982cc2cd488f7e6432d30b40b (patch) | |
tree | 8eca42bd37a93b9eae2200133dfd7ad47024ad09 /tools/ci/jobs/imagemagiccheck.sh | |
parent | 3f68449293de30d84e39fef761ca5a4734f99c32 (diff) | |
download | manaverse-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-x | tools/ci/jobs/imagemagiccheck.sh | 5 |
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 |