summaryrefslogblamecommitdiff
path: root/tools/ci/jobs/imagemagiccheck.sh
blob: 3d747686853c51edfb9dfc3d4066a3734ad2f8dc (plain) (tree)



















                                                                                      
#!/bin/bash

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

aptget_install imagemagick

export LOG="logs/icccheck.log"

mkdir logs
rm ${LOG}

find $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