diff --git a/include/git.sh b/include/git.sh index ff8b0d9..44afd48 100644 --- a/include/git.sh +++ b/include/git.sh @@ -100,6 +100,7 @@ fetch_submodule() tmpclone() { + [ $# -lt 6 ] || rm -Rf "$3" || $err "git retry: !rm $3 ($1)" repodir="repo/${1##*/}" && [ $# -gt 5 ] && repodir="$3" x_ mkdir -p "repo" if [ -d "$repodir" ] && [ $# -lt 6 ]; then