From d82a0f1fcbf04642b53fb61ef6b80d610ef0ecf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Sun, 26 Mar 2023 13:28:13 +0200 Subject: subr.ex/ex_pkg_env.subr: add header. subr.rtl/rtl_fetch_git.subr: cleanup. --- subr.rtl/rtl_fetch_git.subr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subr.rtl') diff --git a/subr.rtl/rtl_fetch_git.subr b/subr.rtl/rtl_fetch_git.subr index f4ac293e..db8a8614 100644 --- a/subr.rtl/rtl_fetch_git.subr +++ b/subr.rtl/rtl_fetch_git.subr @@ -34,7 +34,7 @@ rtlp_fetch_url_git() { exit "${?}";) || return 1; (rtl_fileop cd "${_rpfug_dlcachedir_full}" &&\ git submodule update) || return 1; - else + else if git clone \ ${_rpfug_git_args} \ -b "${_rpfug_git_branch:-main}" \ @@ -44,7 +44,7 @@ rtlp_fetch_url_git() { _rpfug_clonefl=1; elif [ "${_rpfug_mirrors}" = "skip" ]; then return 1; - else + else for _rpfug_url_base in ${_rpfug_mirrors}; do if git clone \ ${_rpfug_git_args} \ @@ -125,7 +125,7 @@ rtl_fetch_mirror_urls_git() { (rtl_fileop cd "${_rfmug_target_dname}/${_rfmug_repo_dname}" &&\ git fetch ${_rfmug_git_args} --all) ||\ return 1; - else + else (rtl_fileop cd "${_rfmug_target_dname}" &&\ git clone ${_rfmug_git_args} --mirror "${_rfmug_url}" "${_rfmug_repo_dname}") ||\ return 1; -- cgit v1.2.3