diff --git a/lib/libnetwork.lib.in b/lib/libnetwork.lib.in index e5a0654..08c163b 100644 --- a/lib/libnetwork.lib.in +++ b/lib/libnetwork.lib.in @@ -918,6 +918,13 @@ function git.download() { notify.debug "$FUNCNAME: token_dirname = \"$token_dirname\"" notify.debug "$FUNCNAME: token_basename = \"$token_basename\"" + if [ -e $destdir/$token_basename ]; then + if [ "$force_download" = "0" ]; then + notify.note "[${filenum:-*}] $NOTE$token_basename$NORM ... "$"skipped" + return 0 + fi + fi + local git_branch="${token_dirname/*\/}" notify.debug "$FUNCNAME: git_branch = \"$git_branch\""