Curl always reports errors in silent mode

This commit is contained in:
Jonathan Curran 2020-06-01 22:21:41 -06:00
commit 09668af688

View file

@ -348,7 +348,7 @@ do_download () {
elif [[ -z "${curl_rc}" ]]; then elif [[ -z "${curl_rc}" ]]; then
echo "Downloading ${url}..." echo "Downloading ${url}..."
if [[ "${RUN_UNATTENDED}" -ne "0" ]]; then if [[ "${RUN_UNATTENDED}" -ne "0" ]]; then
curl -sfL --output "${file_name}" "${url}" curl -fsSL --output "${file_name}" "${url}"
else else
curl -fL --output "${file_name}" --progress-bar "${url}" curl -fL --output "${file_name}" --progress-bar "${url}"
fi fi