diff options
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/edit_script.js.sha | 1 | ||||
-rw-r--r-- | src/static/edit_script.js.sha256 | 1 | ||||
-rw-r--r-- | src/static/style.css.sha | 1 | ||||
-rw-r--r-- | src/static/style.css.sha256 | 1 | ||||
-rwxr-xr-x | src/static/update_hashes.sh | 2 |
5 files changed, 3 insertions, 3 deletions
diff --git a/src/static/edit_script.js.sha b/src/static/edit_script.js.sha new file mode 100644 index 0000000..055c251 --- /dev/null +++ b/src/static/edit_script.js.sha @@ -0,0 +1 @@ +'sha256-O/Q67ZO/c2t0OEnZQIJtx/2VGvvdDEBTB8ol44aaUIo='
\ No newline at end of file diff --git a/src/static/edit_script.js.sha256 b/src/static/edit_script.js.sha256 deleted file mode 100644 index c03887e..0000000 --- a/src/static/edit_script.js.sha256 +++ /dev/null @@ -1 +0,0 @@ -O/Q67ZO/c2t0OEnZQIJtx/2VGvvdDEBTB8ol44aaUIo=
\ No newline at end of file diff --git a/src/static/style.css.sha b/src/static/style.css.sha new file mode 100644 index 0000000..774a743 --- /dev/null +++ b/src/static/style.css.sha @@ -0,0 +1 @@ +'sha256-9xIJ8fFnUyBYBKBAR6JWlmi39sUqyIqzUt1PnrkDE/c='
\ No newline at end of file diff --git a/src/static/style.css.sha256 b/src/static/style.css.sha256 deleted file mode 100644 index cb45c3f..0000000 --- a/src/static/style.css.sha256 +++ /dev/null @@ -1 +0,0 @@ -9xIJ8fFnUyBYBKBAR6JWlmi39sUqyIqzUt1PnrkDE/c=
\ No newline at end of file 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 |