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