esp-who/examples/camera_web_server/main/www/compress_pages.sh

8 lines
161 B
Bash
Executable File

#!/bin/bash
for file in `ls *.html`; do
echo "Compressing: $file"
cp "$file" "copy_$file" && \
gzip -f "$file" && \
mv "copy_$file" "$file"
done