improve unset Element version workaround

This commit is contained in:
Daniel Micay 2021-12-13 11:44:00 -05:00
parent 548554be39
commit 84df782352

View File

@ -13,7 +13,7 @@ cp -a /usr/share/webapps/element static-tmp
cp --remove-destination webapps/element/config.json static-tmp/config.json
# work around https://bugs.archlinux.org/task/72968
find static-tmp -name '*.js' -exec sed -i 's/!!UNSET!!/1.9.6/' {} +
find static-tmp -name '*.js' -exec sed -i "s/!!UNSET!!/$(cat static-tmp/version | tr -d '\n')/g" {} +
brotli_k() {
brotli -k "$@"