Updated: audit.sh

This commit is contained in:
nobody 2021-03-11 07:24:11 +01:00
parent 9a78632c18
commit be192be8ae
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@
# AUDIT SCRIPT TO VERIFY THE INTEGRITY OF THE BUNDLED RESOURCES
#
# Author nobody
# Versions 1.1
# Versions 1.2
#
# License MPL 2.0
#
@ -184,7 +184,7 @@ function check_resource
fi
# Calculate hash value
LOCAL_HASH=$(sha512sum "$path" | cut -d " " -f 1)
LOCAL_HASH=$(sha512sum "$1" | cut -d " " -f 1)
REMOTE_HASH=$(sha512sum ./tmp | cut -d " " -f 1)
if [ "$LOCAL_HASH" != "$REMOTE_HASH" ]; then
@ -446,9 +446,7 @@ function create_url
elif [ "$subfile" = "videojs-seek-buttons.min.js" ]; then
url="$JSDELIVR/npm/videojs-seek-buttons/dist/videojs-seek-buttons.js"
elif [ "$subfile" = "jsdelivr-combine-jquery-hogan-algoliasearch-autocomplete.js" ]; then
url="$JSDELIVR/combine/npm/jquery@2.2.4/dist/jquery.min.js,npm/hogan.js@3.0.2/dist/\
hogan-3.0.2.min.js,npm/algoliasearch@3.30.0/dist/algoliasearch.min.js,npm/\
autocomplete.js@0.31.0/dist/autocomplete.min.js"
url="$JSDELIVR/combine/npm/jquery@2.2.4/dist/jquery.min.js,npm/hogan.js@3.0.2/dist/hogan-3.0.2.min.js,npm/algoliasearch@3.30.0/dist/algoliasearch.min.js,npm/autocomplete.js@0.31.0/dist/autocomplete.min.js"
elif [ "$folder" = "vue-resource" ]; then
url="$GITHUB/pagekit/vue-resource/$version/dist/vue-resource.min.js"
elif [ "$path" = "../resources/webfont/fa-loader.js" ]; then