survey/scripts/bundle.sh

7 lines
214 B
Bash
Executable file

#!/bin/bash
bench_hash=$(sha256sum ./static/cache/bundle/bench.js \
| cut -d " " -f 1 \
| tr "[:lower:]" "[:upper:]")
sed -i "s/bench.js/assets\/bundle\/bench.$bench_hash.js/" ./static/cache/bundle/bundle.js