1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00
seirdy.one/scripts/fflint.sh

18 lines
767 B
Bash

#!/bin/sh
#fflint json --show-tests all --show-detail "$output_dir/**/*.json"
set -e -u
output_dir="$1"
fflint_wrapper() {
fflint --fail-fast --progress=false --show-tests failing $*
}
cd "$output_dir"
find '.' -type f -name "*.jpg" | fflint_wrapper --height 1-1500 --width 1-1500 jpeg @-
find '.' -type f -name "*.png" | fflint_wrapper --height 1-1500 --width 1-1500 png @-
find '.' -type f -name "*.json" -o -name ".webmanifest" | fflint_wrapper json @-
find '.' -type f -name "*.html" | fflint_wrapper html @-
find '.' -type f -name "*.svg" | fflint_wrapper --height 1-1500 --width 1-1500 svg @-
find '.' -type f -name "*.txt" -o -name "*.gmi" -o -name "*.asc" | fflint_wrapper text @-
find '.' -type f -name "*.xhtml" -o -name "*.xml" | fflint_wrapper xml @-