Ignoring pre-commit on webp transform

This commit is contained in:
Roger Gonzalez 2023-01-10 14:49:01 -03:00
parent 5c50574502
commit a3f66b61d0
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -3,4 +3,4 @@
set -eo pipefail
find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp $1 -o "${1%.png}.webp"' _ {} \;
find . -type f -not -path '*/.git/*' -exec sed -i -e 's/\.png/\.webp/g' {} \;
find . -type f -not -path '*/.git/*' \( ! -iname "pre-commit" \) -exec sed -i -e 's/\.png/\.webp/g' {} \;