preserve timestamps for zopfli

This commit is contained in:
Daniel Micay 2021-11-23 18:28:10 -05:00
parent f945befca2
commit 0ae1a5a9f4

View File

@ -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 :::: -