Don't verify SSL certificates while fetching files with HTTPS. Fix lha command line options inconsistency.

This commit is contained in:
Krystian Bacławski 2014-01-23 19:08:16 +01:00
parent 6f12b7bb88
commit 00adaff6c3
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ function download {
local -r file="${2:-$(basename "${url}")}"
if [ ! -f "${file}" ]; then
wget -O "${file}" "${url}"
wget --no-check-certificate -O "${file}" "${url}"
fi
}
@ -15,8 +15,8 @@ function download_and_extract {
local -r arc="$(basename "${url}")"
if [ ! -f "${file}" ]; then
wget -O "${arc}" "${url}"
lha x -i "${arc}" "${file}"
wget --no-check-certificate -O "${arc}" "${url}"
lha -xi "${arc}" "${file}"
rm -f "${arc}"
fi
}