Fixed gitignore to ignore .png files

This commit is contained in:
Roger Gonzalez 2023-01-10 19:48:07 -03:00
parent 6d17356f63
commit 79bbd79f49
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -17,4 +17,4 @@ hugo.linux
# Temporary lock file while building # Temporary lock file while building
/.hugo_build.lock /.hugo_build.lock
*.webp *.png

View File

@ -3,4 +3,4 @@
set -eo pipefail set -eo pipefail
find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp $1 -o "${1%.png}.webp"' _ {} \; 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' {} \;