Skip to content

Commit

Permalink
Disable curl certificate checking to avoid error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
McBruno712 authored Feb 15, 2022
1 parent 5f8f0ad commit bca08bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sharedFuncs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function download_component() {

elif [ "$curlpkg" == "true" ];then
show_message "using curl to download $4"
curl $3 -o $1
curl -k $3 -o $1
else
show_message "using wget to download $4"
wget --no-check-certificate "$3" -P "$CACHE_PATH"
Expand Down

0 comments on commit bca08bb

Please sign in to comment.