summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinclude/git.sh1
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