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