diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-10 14:49:01 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-10 14:49:01 -0300 |
commit | a3f66b61d024e62bcfd0b2ca985bac69104af934 (patch) | |
tree | ea55e16954ac10bb2d4f880cabc4215e146c0299 /pre-commit | |
parent | 5c50574502b097f6f5a60ec3f0588e1871270ae5 (diff) |
Ignoring pre-commit on webp transform
Diffstat (limited to 'pre-commit')
-rwxr-xr-x | pre-commit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' {} \; |