mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-10-01 04:45:34 -04:00
preserve timestamps for zopfli
This commit is contained in:
parent
f945befca2
commit
0ae1a5a9f4
@ -16,5 +16,11 @@ brotli_k() {
|
||||
}
|
||||
export -f brotli_k
|
||||
|
||||
zopfli_preserve_time() {
|
||||
zopfli "$1"
|
||||
touch -r "$1" "$1.gz"
|
||||
}
|
||||
export -f zopfli_preserve_time
|
||||
|
||||
find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|webmanifest\|xml\|wasm\)' |
|
||||
parallel -q ::: brotli_k zopfli :::: -
|
||||
parallel -q ::: brotli_k zopfli_preserve_time :::: -
|
||||
|
Loading…
Reference in New Issue
Block a user