From 9c5890e9f2813ff442402254b358f39b44b69339 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 24 May 2024 21:43:10 +0100 Subject: git.sh: break if a submodule clone succeeds Signed-off-by: Leah Rowe --- include/git.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index f82fd103..a1afcee8 100755 --- a/include/git.sh +++ b/include/git.sh @@ -145,6 +145,7 @@ fetch_submodule() [ -z "$mod" ] && continue git clone "$mod" "$tmpgit/$1" || rm -Rf "$tmpgit/$1" \ || $err "!rm $mod $project $cfgdir $1" + [ -d "$tmpgit/$1" ] && break done [ -d "$tmpgit/$1" ] || $err "!clone $mod $project $mcfgdir $1" else -- cgit v1.2.1