esp-who/components/modules/web/www/compress_pages.sh

8 lines
161 B
Bash
Raw Permalink Normal View History

2021-09-08 20:04:59 +08:00
#!/bin/bash
for file in `ls *.html`; do
echo "Compressing: $file"
cp "$file" "copy_$file" && \
gzip -f "$file" && \
mv "copy_$file" "$file"
done