mirror of
https://github.com/cahirwpz/amigaos-cross-toolchain
synced 2026-03-21 03:43:17 +00:00
Don't verify SSL certificates while fetching files with HTTPS. Fix lha command line options inconsistency.
This commit is contained in:
@ -5,7 +5,7 @@ function download {
|
|||||||
local -r file="${2:-$(basename "${url}")}"
|
local -r file="${2:-$(basename "${url}")}"
|
||||||
|
|
||||||
if [ ! -f "${file}" ]; then
|
if [ ! -f "${file}" ]; then
|
||||||
wget -O "${file}" "${url}"
|
wget --no-check-certificate -O "${file}" "${url}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15,8 +15,8 @@ function download_and_extract {
|
|||||||
local -r arc="$(basename "${url}")"
|
local -r arc="$(basename "${url}")"
|
||||||
|
|
||||||
if [ ! -f "${file}" ]; then
|
if [ ! -f "${file}" ]; then
|
||||||
wget -O "${arc}" "${url}"
|
wget --no-check-certificate -O "${arc}" "${url}"
|
||||||
lha x -i "${arc}" "${file}"
|
lha -xi "${arc}" "${file}"
|
||||||
rm -f "${arc}"
|
rm -f "${arc}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user