add -k and --no-check-certificate to curl and wget for ignoring ssl
This commit is contained in:
parent
ad157c73aa
commit
4727d0658c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue