diff options
author | Leah Rowe <leah@libreboot.org> | 2024-05-24 21:43:10 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-05-24 21:43:10 +0100 |
commit | 9c5890e9f2813ff442402254b358f39b44b69339 (patch) | |
tree | 4286a3cd78458b31f62240222c5d447c06658e8f /include | |
parent | fdb08143e4558039c6f060c594f035a53631b50f (diff) |
git.sh: break if a submodule clone succeeds
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-x | include/git.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |