--- a/bitbucket-pipelines.yml Wed Jun 27 22:58:20 2018 +0800
+++ b/bitbucket-pipelines.yml Wed Jun 27 23:06:14 2018 +0800
- test $(HGPLAIN=1 hg d | wc -l) -eq 0
- - apt-get install -y curl
- - contrib/updatesri.sh *.html
- - test $(HGPLAIN=1 hg d | wc -l) -eq 0
+ - apt-get install -y wget tar
--- a/contrib/updatesri.sh Wed Jun 27 22:58:20 2018 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
-( egrep -oh 'https://[^"]+\.js' "$@" || true ) | sort -u | while read -r url; do
- 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' "$@" || true ) | sort -u | while read -r url; do
- 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\">" "$@"