diff options
Diffstat (limited to 'subr')
-rw-r--r-- | subr/ex_rtl_fetch.subr | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/subr/ex_rtl_fetch.subr b/subr/ex_rtl_fetch.subr index 086a7954..babf267f 100644 --- a/subr/ex_rtl_fetch.subr +++ b/subr/ex_rtl_fetch.subr @@ -10,11 +10,9 @@ exp_rtl_fetch_url_git() { git pull origin "${_branch:-main}"); else git clone "${_url}" "${BUILD_DLCACHEDIR}/${_subdir}"; - if [ -n "${_branch}" -a \ - \( -z "${_branch#main}" \) -a \ - \( -z "${_branch#master}" \) ]; then - (ex_rtl_fileop cd "${BUILD_DLCACHEDIR}/${_subdir}" &&\ - git checkout -b "${_branch}"); + if [ -n "${_branch}" ]; then + (ex_rtl_fileop cd "${BUILD_DLCACHEDIR}/${_subdir}" &&\ + git checkout "${_branch}"); fi; fi; _oldpwd="${PWD}"; ex_rtl_fileop cd "${PKG_BASE_DIR}"; |