aboutsummaryrefslogtreecommitdiff
path: root/src/static/update_hashes.sh
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-06-22 22:14:19 +0200
committerMartin Fischer <martin@push-f.com>2021-06-22 23:54:36 +0200
commitd6d71d1693cb7d798bdf2b12c5fa6eea0a5860df (patch)
tree73e54182d77c4923f244b145b05c61ae67970d62 /src/static/update_hashes.sh
publish
Diffstat (limited to 'src/static/update_hashes.sh')
-rwxr-xr-xsrc/static/update_hashes.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/static/update_hashes.sh b/src/static/update_hashes.sh
new file mode 100755
index 0000000..31f63bd
--- /dev/null
+++ b/src/static/update_hashes.sh
@@ -0,0 +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
+done