image-optimization.sh: jpegoptim doesn't accept glob patterns; error causes images to be deleted #3186
Labels
bug
good first issue
Small tasks with clear documentation about how and in which place you need to fix things in.
Milestone
Steps to reproduce
The Issue
Jpegoptim doesn't accept glob patterns (jpegoptim: skipping special file: *.jpg). It doesn't seem to handle errors properly either in that the files matching the glob were deleted instead of left alone.
Here is a safe replacement you can substitute for the line with jpegoptim:
The text was updated successfully, but these errors were encountered: