From dbf49282bd449a32724aa0e3d22659a871a840ac Mon Sep 17 00:00:00 2001 From: Julius Zeidler Date: Fri, 6 Dec 2024 00:18:34 +0100 Subject: [PATCH] ignore errors --- optimize.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/optimize.sh b/optimize.sh index 811a9e66..e61b27a5 100755 --- a/optimize.sh +++ b/optimize.sh @@ -1,4 +1,3 @@ #!/bin/bash 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}"