don't try to use curl with https, it requires a wrapper to work

This commit is contained in:
Solene Rapenne 2021-08-15 21:14:40 +02:00
parent 710f1dfef8
commit e680e0821a
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,8 @@ export PKG_PATH="${INSTALLURL}/$(uname -r)/packages-stable/$(machine)/"
CACHE_DIR=/var/cache/pkgupdate/
# curl can only be used for http:// , it's quite complicated with https://
# due to the way pkg_add calls $FETCH_CMD
def_curl() {
if type curl 2> /dev/null >/dev/null
then
@ -54,7 +56,9 @@ do_http() {
}
do_https() {
do_http "https://"
echo "Updating using $1 protocol"
check_cache
pkg_add -u 2>&1 | grep -v "^Couldn't find updates for "
}
unsupported() {