git.sh: break if a submodule clone succeeds

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-05-24 21:43:10 +01:00
parent fdb08143e4
commit 9c5890e9f2
1 changed files with 1 additions and 0 deletions

View File

@ -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