We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1e9467a + b4fd957 commit 0ca9ac2Copy full SHA for 0ca9ac2
1 file changed
calc_sri_fix.sh
100755
100644
@@ -2,6 +2,7 @@
2
3
set -euo pipefail
4
5
+# calculate_sri downloads the given URL, computes the SHA-384 SRI hash of its content (base64) and echoes a line "<url> sha384-<base64_hash>".
6
calculate_sri() {
7
url="$1"
8
temp_file=$(mktemp)
@@ -25,4 +26,4 @@ calculate_sri() {
25
26
}
27
28
calculate_sri "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.js"
-calculate_sri "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/toolbar/prism-toolbar.min.js"
29
+calculate_sri "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/toolbar/prism-toolbar.min.js"
0 commit comments