aboutsummaryrefslogtreecommitdiff
path: root/src/static/update_hashes.sh
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-06-24 21:07:45 +0200
committerMartin Fischer <martin@push-f.com>2021-06-24 23:14:15 +0200
commitd43543440e5d3f0e93ed1cf197601d778541c3ae (patch)
treed966b40936d7ef8cb559e2b556d3b9e01a5f824b /src/static/update_hashes.sh
parentb019d39957bd644d9b6b856738b57eb87e0506de (diff)
generate <script> tags and CSP from Page vectors
Diffstat (limited to 'src/static/update_hashes.sh')
-rwxr-xr-xsrc/static/update_hashes.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/update_hashes.sh b/src/static/update_hashes.sh
index 31f63bd..ac6c6a1 100755
--- a/src/static/update_hashes.sh
+++ b/src/static/update_hashes.sh
@@ -1,5 +1,5 @@
#/bin/sh
cd "$(dirname "$0")"
for script in *.css *.js; do
- shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0 > $script.sha256
+ printf "'sha256-%s'" $(shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0) > $script.sha
done