Fix compress-images.sh

This commit is contained in:
Aria 2025-03-10 12:22:46 +11:00
parent 6a99f94759
commit 8439519feb
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B

View file

@ -2,7 +2,7 @@
if command -v jpegoptim >/dev/null 2>&1 ; then if command -v jpegoptim >/dev/null 2>&1 ; then
echo "jpegoptim found" echo "jpegoptim found"
find ./public \( -iname "*.jpg" -o -iname "*.jpeg" \) | jpegoptim -p -P --files-stdin -w $(nproc --all) find ./dist \( -iname "*.jpg" -o -iname "*.jpeg" \) | jpegoptim -p -P --files-stdin -w $(nproc --all)
else else
echo "jpegoptim was not found! install either with your package manager or get the binary from the github" echo "jpegoptim was not found! install either with your package manager or get the binary from the github"
echo "https://github.com/tjko/jpegoptim/releases/latest" echo "https://github.com/tjko/jpegoptim/releases/latest"