mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-27 10:52:09 +00:00
8 lines
133 B
Bash
8 lines
133 B
Bash
#!/bin/sh
|
|
# compress a file with brotli if it isn't already compressed.
|
|
set -e -u
|
|
|
|
if [ ! -f "$1.br" ]; then
|
|
brotli -Z -- "$1"
|
|
fi
|
|
|