Exit if failing to run pngcheck

This commit is contained in:
Alexander van Gessel 2010-10-16 23:33:19 +01:00
parent bb8ce8ec6b
commit 336e0d17ae

View file

@ -40,6 +40,10 @@ report_file()
for i in $filelist; do
result=`pngcheck $i`
if [ $? -ne 0 ]; then
echo "Failure executing pngcheck. Exiting."
exit 1
fi
if echo $result|grep 'RGB+alpha'>/dev/null
then
rgba=$(($rgba+1))