--- a/contrib/updatesri.sh Thu Jul 07 00:12:35 2016 +0800
+++ b/contrib/updatesri.sh Wed Aug 10 01:19:54 2016 +0800
egrep -oh 'https://[^"]+\.js' "$@" | sort -u | while read url; do
- hash=`curl -fsS "$url" | openssl dgst -sha384 -binary | openssl base64 -A`
+ hash=$(curl -fsS "$url" | openssl dgst -sha384 -binary | openssl base64 -A)
sed -i "\|$url| c\\ <script src=\"$url\" integrity=\"sha384-$hash\" crossorigin=\"anonymous\"></script>" "$@"
egrep -oh 'https://[^"]+\.css' "$@" | sort -u | while read url; do
- hash=`curl -fsS "$url" | openssl dgst -sha384 -binary | openssl base64 -A`
+ hash=$(curl -fsS "$url" | openssl dgst -sha384 -binary | openssl base64 -A)
sed -i "\|$url| c\\ <link rel=\"stylesheet\" href=\"$url\" integrity=\"sha384-$hash\" crossorigin=\"anonymous\">" "$@"