🥅 Adds error handling

Signed-off-by: Bjorn Lammers <walkxnl@gmail.com>
This commit is contained in:
Bjorn Lammers 2023-04-16 20:52:14 +02:00 committed by GitHub
parent e4867417b8
commit 0bf7ce1daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ jobs:
find png/ -iname "*.png" -print0 | while read -d $'\0' file
do
echo "Processing file $current_file of $total_files: $file"
pngquant --force --ext .png --skip-if-larger --verbose --speed 1 $file
pngquant --force --ext .png --skip-if-larger --verbose --speed 1 $file || true
current_file=$((current_file+1))
done
@ -38,7 +38,7 @@ jobs:
find svg/ -iname "*.svg" -print0 | while read -d $'\0' file
do
echo "Processing file $current_file of $total_files: $file"
svgo --quiet --multipass --show-progress $file
svgo --quiet --multipass --show-progress $file || true
current_file=$((current_file+1))
done