diff options
Diffstat (limited to 'subr/pkg_fetch_download.subr')
-rw-r--r-- | subr/pkg_fetch_download.subr | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/subr/pkg_fetch_download.subr b/subr/pkg_fetch_download.subr index a23b8b9d..126675ad 100644 --- a/subr/pkg_fetch_download.subr +++ b/subr/pkg_fetch_download.subr @@ -4,10 +4,14 @@ pkg_fetch_download() { if [ -n "${PKG_URL}" ]; then - rtl_fetch_url_wget "${PKG_URL}" "${PKG_SHA256SUM}" "${PKG_FNAME}" || return "${?}"; + if ! rtl_fetch_url_wget "${PKG_URL}" "${PKG_SHA256SUM}" "${PKG_FNAME}"; then + return 1; + fi; fi; if [ -n "${PKG_URLS_GIT}" ]; then - rtl_fetch_urls_git "${PKG_BASE_DIR}" ${PKG_URLS_GIT} || return "${?}"; + if ! rtl_fetch_urls_git "${PKG_BASE_DIR}" ${PKG_URLS_GIT}; then + return 1; + fi; fi; }; |