diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-10 19:48:07 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-10 19:48:07 -0300 |
commit | 79bbd79f4934da51a6ce41dacad1a2d1e44dc860 (patch) | |
tree | 147a7f652f892e59f52bf707b102e0a859805ed7 | |
parent | 6d17356f63c22f8ec873e23038fcbe105404bda5 (diff) |
Fixed gitignore to ignore .png files
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | pre-commit | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -17,4 +17,4 @@ hugo.linux # Temporary lock file while building /.hugo_build.lock -*.webp +*.png @@ -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' {} \; |