imagemagiccheck.sh 330 B

12345678910111213141516171819
  1. #!/usr/bin/env bash
  2. source ./tools/ci/scripts/init.sh
  3. export LOG="logs/icccheck.log"
  4. mkdir logs
  5. rm ${LOG}
  6. find -H $DIR -type f -name "*.png" -exec ./tools/ci/scripts/icccheckfile.sh {} \; >${LOG}
  7. check_error $?
  8. export RES=$(cat ${LOG})
  9. if [[ -n "${RES}" ]]; then
  10. echo "Detected icc profiles"
  11. cat ${LOG}
  12. exit 1
  13. fi