#!/bin/bash # Compress all font files in the current directory using woff2_compress for font in *.ttf *.otf; do if [[ -f "$font" ]]; then woff2_compress "$font" fi done