diff options
-rw-r--r-- | include/git.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh index 0c2f7acc..2c43cd22 100644 --- a/include/git.sh +++ b/include/git.sh @@ -103,9 +103,9 @@ tmpclone() repodir="$XBMK_CACHE/repo/${1##*/}" && [ $# -gt 5 ] && repodir="$3" mkdir -p "$XBMK_CACHE/repo" || $err "!rmdir $XBMK_CACHE/repo" - if [ "$livepull" = "y" ]; then + if [ "$livepull" = "y" ] && [ ! -d "$repodir" ]; then git clone $1 "$repodir" || git clone $2 "$repodir" || \ - $err "!clone $1 $2 $repodir $4 $5" + $err "!clone $1 $2 $repodir $4 $5" # elif [ -d "$repodir" ] && [ $# -lt 6 ]; then git -C "$repodir" pull || sleep 3 || git -C "$repodir" pull \ || sleep 3 || git -C "$repodir" pull || : |