Commit 78b101b2e8f9cbd289cdfeebc53513d012b5fd8f
1 parent
e5dfac7ea3
bundle-install doesn't automatically update.
bundle-install command now only updates the plugins' repositories, if the `--update` argument is given to it.
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -81,10 +81,10 @@ bundle-install () { |
81 | 81 | local clone_dir="$(echo "$spec" | awk '{print $4}')" |
82 | 82 | |
83 | 83 | if [[ -z "$(echo "$handled_repos" | grep -Fm1 "$url")" ]]; then |
84 | - if [[ -d $clone_dir ]]; then | |
85 | - git --git-dir "$clone_dir/.git" pull | |
86 | - else | |
84 | + if [[ ! -d $clone_dir ]]; then | |
87 | 85 | git clone "$url" "$clone_dir" |
86 | + elif $update; then | |
87 | + git --git-dir "$clone_dir/.git" pull | |
88 | 88 | fi |
89 | 89 | |
90 | 90 | handled_repos="$handled_repos\n$url" |