Remove early exit

This commit is contained in:
Jonathan Curran 2020-06-09 10:18:22 -06:00
commit 44c45590bc

View file

@ -352,6 +352,7 @@ do_download () {
# Or, If curl is around, use that. # Or, If curl is around, use that.
elif [[ -z "${curl_rc}" ]]; then elif [[ -z "${curl_rc}" ]]; then
echo "Downloading ${url}..." echo "Downloading ${url}..."
local header
if [[ -n "${RS_USER_AGENT}" ]]; then if [[ -n "${RS_USER_AGENT}" ]]; then
header="-H 'User-Agent: ${RS_USER_AGENT}'" header="-H 'User-Agent: ${RS_USER_AGENT}'"
fi fi
@ -377,7 +378,6 @@ do_download () {
exit ${rc} exit ${rc}
fi fi
fi fi
exit
} }
# This helps determine whether a given command exists or not. # This helps determine whether a given command exists or not.