mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-26 18:32:10 +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
|
||
|
|