From bca08bb2a594036a474742bc25b6c5f97a9498ad Mon Sep 17 00:00:00 2001 From: Bruno Turcatti <33015197+McBruno712@users.noreply.github.com> Date: Tue, 15 Feb 2022 05:46:00 -0300 Subject: [PATCH] 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. --- scripts/sharedFuncs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sharedFuncs.sh b/scripts/sharedFuncs.sh index 0151fa3..81b971c 100755 --- a/scripts/sharedFuncs.sh +++ b/scripts/sharedFuncs.sh @@ -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"