imgoptimize: quote paths

Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-03-21 21:21:25 -04:00
parent 7e6090274a
commit 8f187e325c
1 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
filename="${1%.*}" filename="${1%.*}"
cwebp ${filename}.png -q 75 -o ${filename}.webp cwebp "${filename}".png -q 75 -o "${filename}".webp
avifenc ${filename}.png -o ${filename}.avif -s 0 -d 8 --min 48 --max 48 --minalpha 48 --maxalpha 48 avifenc "${filename}".png -o "${filename}".avif -s 0 -d 8 --min 48 --max 48 --minalpha 48 --maxalpha 48
pngcrush ${filename}.png pngcrush "${filename}".png