Disable curl certificate checking to avoid error

Avoid the `curl failed to verify the legitimacy of the server and
therefore could not establish a secure connection to it` error by
adding the -k flag to curl.
This commit is contained in:
Bruno Turcatti 2022-02-15 05:46:00 -03:00 committed by GitHub
parent 5f8f0adcdd
commit bca08bb2a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ function download_component() {
elif [ "$curlpkg" == "true" ];then elif [ "$curlpkg" == "true" ];then
show_message "using curl to download $4" show_message "using curl to download $4"
curl $3 -o $1 curl -k $3 -o $1
else else
show_message "using wget to download $4" show_message "using wget to download $4"
wget --no-check-certificate "$3" -P "$CACHE_PATH" wget --no-check-certificate "$3" -P "$CACHE_PATH"