diff options
Diffstat (limited to 'pre-commit')
-rwxr-xr-x | pre-commit | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pre-commit b/pre-commit deleted file mode 100755 index a6c57d1..0000000 --- a/pre-commit +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -# -set -eo pipefail - -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' {} \; |