Exit if failing to run pngcheck
This commit is contained in:
parent
bb8ce8ec6b
commit
336e0d17ae
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue