add -k and --no-check-certificate to curl and wget for ignoring ssl

This commit is contained in:
Alire Jafari 2022-03-08 02:09:08 +03:30
parent ad157c73aa
commit 4727d0658c
1 changed files with 2 additions and 2 deletions

View File

@ -203,11 +203,11 @@ 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
downrez=$? downrez=$?
else else
show_message "using wget to download $4" show_message "using wget to download $4"
wget "$3" -P "$CACHE_PATH" wget --no-check-certificate "$3" -P "$CACHE_PATH"
downrez=$? downrez=$?
fi fi
if [ "$downrez" -eq 0 ];then if [ "$downrez" -eq 0 ];then