ignore errors

This commit is contained in:
Julius Zeidler 2024-12-06 00:18:34 +01:00
parent 4c09627f3b
commit dbf49282bd

View file

@ -1,4 +1,3 @@
#!/bin/bash #!/bin/bash
echo "running image optimization" echo "running image optimization"
npx --yes sharp-cli resize 1200 --withoutEnlargement true --optimise true --progressive true --withMetadata false --input $(find ./docs \( -name cache -prune \) -o -name '*' -type f -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}') --output "{dir}/{base}" npx --yes sharp-cli resize 1200 --withoutEnlargement true --optimise true --progressive true --withMetadata false --failOn none --input $(find ./docs \( -name cache -prune \) -o -name '*' -type f -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}') --output "{dir}/{base}"