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
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