[arista]: Fix web package md5 hash not correct issue (#6411)

Need to add the follow redirection option -L when downloading the package with redirection.
This commit is contained in:
xumia 2021-01-12 02:33:08 +08:00 committed by GitHub
parent 3dd993e019
commit 4ef3f1376f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ check_version_control()
get_url_version()
{
local package_url=$1
/usr/bin/curl -ks $package_url | md5sum | cut -d' ' -f1
/usr/bin/curl -Lks $package_url | md5sum | cut -d' ' -f1
}
check_if_url_exist()