From a3f66b61d024e62bcfd0b2ca985bac69104af934 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Tue, 10 Jan 2023 14:49:01 -0300 Subject: Ignoring pre-commit on webp transform --- pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre-commit b/pre-commit index b2a2042..673aa0c 100755 --- a/pre-commit +++ b/pre-commit @@ -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' {} \; -- cgit v1.2.3