git.sh: break if a submodule clone succeeds

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe 2024-05-24 21:43:10 +01:00 committed by Leah Rowe
parent 38fca598fb
commit 27f21c32d3

View file

@ -150,6 +150,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