Remove early exit
This commit is contained in:
parent
4ef319313c
commit
44c45590bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue