[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 Guohan Lu
parent 8003e11b53
commit fbc6190c0c

View File

@ -46,7 +46,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()