better link anchors
This commit is contained in:
parent
fb41dd75c4
commit
1d5dd87230
8 changed files with 26 additions and 13 deletions
2
sri.sh
2
sri.sh
|
|
@ -5,6 +5,8 @@ FILES="*.css *.js *.ico"
|
|||
echo "SRI (subresource integrity) hashes"
|
||||
cd ${DIR}
|
||||
for f in $(ls ${FILES} 2>/dev/null); do
|
||||
grep '^' ${f} | head -c-1 - > tmp
|
||||
mv tmp ${f}
|
||||
printf "%13s: " ${f}
|
||||
echo "${HASH}-$(cat ${f}|openssl dgst -${HASH} -binary|openssl enc -base64 -A)"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue