Commit aa510273dba10d47e7dbbe6616caef44e2738c55
1 parent
a91386310e
Removed useless logic in a private function.
Showing 1 changed file with 4 additions and 11 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -86,20 +86,13 @@ bundle () { |
86 | 86 | shift |
87 | 87 | fi |
88 | 88 | |
89 | - local handled_repos="" | |
90 | - local install_bundles="" | |
91 | - | |
92 | 89 | local url="$1" |
93 | 90 | local clone_dir="$(-antigen-get-clone-dir $url)" |
94 | 91 | |
95 | - if ! echo "$handled_repos" | grep -Fqm1 "$url"; then | |
96 | - if [[ ! -d $clone_dir ]]; then | |
97 | - git clone "$url" "$clone_dir" | |
98 | - elif $update; then | |
99 | - git --git-dir "$clone_dir/.git" pull | |
100 | - fi | |
101 | - | |
102 | - handled_repos="$handled_repos\n$url" | |
92 | + if [[ ! -d $clone_dir ]]; then | |
93 | + git clone "$url" "$clone_dir" | |
94 | + elif $update; then | |
95 | + git --git-dir "$clone_dir/.git" pull | |
103 | 96 | fi |
104 | 97 | |
105 | 98 | } |