aboutsummaryrefslogtreecommitdiff
path: root/src/static/update_hashes.sh
blob: 3bcdb7822c1f3e3d8bf81acd6bcacc61699dc586 (plain)
1
2
3
4
5
#/bin/sh
cd "$(dirname "$0")"
for script in style.css edit_script.js; do
	printf "'sha256-%s'" $(shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0) > $script.sha
done