summaryrefslogblamecommitdiff
path: root/tools/ci/jobs/imagemagiccheck.sh
blob: 564026f1c17234b1c25631b7e9ddc60a701a7409 (plain) (tree)
1
2
3
4
5
6
7
8
9
                   


                                 




                              
                                                                                         







                                
#!/usr/bin/env bash

source ./tools/ci/scripts/init.sh

export LOG="logs/icccheck.log"

mkdir logs
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"
    cat ${LOG}
    exit 1
fi