From aa510273dba10d47e7dbbe6616caef44e2738c55 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Fri, 8 Jun 2012 19:08:23 +0530 Subject: [PATCH] Removed useless logic in a private function. --- antigen.zsh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index e6d6b42..52e95f4 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -86,20 +86,13 @@ bundle () { shift fi - local handled_repos="" - local install_bundles="" - local url="$1" local clone_dir="$(-antigen-get-clone-dir $url)" - if ! echo "$handled_repos" | grep -Fqm1 "$url"; then - if [[ ! -d $clone_dir ]]; then - git clone "$url" "$clone_dir" - elif $update; then - git --git-dir "$clone_dir/.git" pull - fi - - handled_repos="$handled_repos\n$url" + if [[ ! -d $clone_dir ]]; then + git clone "$url" "$clone_dir" + elif $update; then + git --git-dir "$clone_dir/.git" pull fi } -- 2.0.0