From 39640d76a75098e7acf1cf2e3616978a5b0978f1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 17 Apr 2025 04:22:03 +0100 Subject: lbmk: minor cleanup Signed-off-by: Leah Rowe --- include/git.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'include/git.sh') diff --git a/include/git.sh b/include/git.sh index 42b04010..a30d3aa4 100644 --- a/include/git.sh +++ b/include/git.sh @@ -61,9 +61,8 @@ git_prep() [ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \ [ "$xtree" != "$tree" ] && link_crossgcc "$_loc" - [ "$XBMK_RELEASE" = "y" ] && \ - [ "$_loc" != "$XBMK_CACHE/repo/$project" ] && \ - rmgit "$tmpgit" + [ "$_loc" != "$XBMK_CACHE/repo/$project" ] && \ + [ "$XBMK_RELEASE" = "y" ] && rmgit "$tmpgit" move_repo "$_loc" } @@ -77,9 +76,8 @@ prep_submodules() fetch_submodule() { - mcfgdir="$mdir/${1##*/}" - eval "`setvars "" subhash subrepo subrepo_bkup subfile subfile_bkup \ - st`" + mcfgdir="$mdir/${1##*/}"; eval \ + "`setvars "" subhash subrepo subrepo_bkup subfile subfile_bkup st`" [ ! -f "$mcfgdir/module.cfg" ] || . "$mcfgdir/module.cfg" || \ $err "! . $mcfgdir/module.cfg" -- cgit v1.2.1