diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-11 08:54:43 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-11 08:54:43 -0300 |
commit | 257aa2bfa80ba18ef57d449ec9d826525f467e6a (patch) | |
tree | 9324b0652054eccccda225bb86bf22b0543e6538 | |
parent | 0bbff7b4dd95f395165617cfd9c2811e09e07771 (diff) |
Fixed ./build script to generate webp files
-rwxr-xr-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ #!/bin/bash -find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.png"' _ {} \; -find . -type f -not -path '*/.git/*' \( ! -iname ".gitignore" ! -iname "pre-commit" \) -exec sed -i -e 's/\.png/\.png/g' {} \; +find ./ -type f -name '*.png' -not -path '*/.git/*' -exec sh -c 'cwebp -lossless $1 -o "${1%.png}.webp"' _ {} \; +find . -type f -not -path '*/.git/*' \( ! -iname ".gitignore" ! -iname "pre-commit" \) -exec sed -i -e 's/\.png/\.webp/g' {} \; hugo -s . -d /var/www/yams.media/ |