mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-28 03:02:09 +00:00
9 lines
133 B
Bash
9 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
|
||
|
|