summaryrefslogtreecommitdiff
path: root/pre-commit
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-10 19:48:07 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-10 19:48:07 -0300
commit79bbd79f4934da51a6ce41dacad1a2d1e44dc860 (patch)
tree147a7f652f892e59f52bf707b102e0a859805ed7 /pre-commit
parent6d17356f63c22f8ec873e23038fcbe105404bda5 (diff)
Fixed gitignore to ignore .png files
Diffstat (limited to 'pre-commit')
-rwxr-xr-xpre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit b/pre-commit
index 673aa0c..6ea076b 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/*' \( ! -iname "pre-commit" \) -exec sed -i -e 's/\.png/\.webp/g' {} \;
+find . -type f -not -path '*/.git/*' \( ! -iname ".gitignore" ! -iname "pre-commit" \) -exec sed -i -e 's/\.png/\.webp/g' {} \;