From 4727d0658c009e2b6693e60b2e43a4df6638224f Mon Sep 17 00:00:00 2001 From: Alire Jafari Date: Tue, 8 Mar 2022 02:09:08 +0330 Subject: [PATCH] add -k and --no-check-certificate to curl and wget for ignoring ssl --- scripts/sharedFuncs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sharedFuncs.sh b/scripts/sharedFuncs.sh index dc61407..aaa582a 100644 --- a/scripts/sharedFuncs.sh +++ b/scripts/sharedFuncs.sh @@ -203,11 +203,11 @@ function download_component() { elif [ "$curlpkg" == "true" ];then show_message "using curl to download $4" - curl $3 -o $1 + curl -k $3 -o $1 downrez=$? else show_message "using wget to download $4" - wget "$3" -P "$CACHE_PATH" + wget --no-check-certificate "$3" -P "$CACHE_PATH" downrez=$? fi if [ "$downrez" -eq 0 ];then