Commit 382d9209623921567828bf4406503397ee7ee55c
1 parent
062a7b830d
Use local variables in functions.
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -192,11 +192,11 @@ antigen-update () { |
192 | 192 | git clone "${url%|*}" "$clone_dir" |
193 | 193 | elif $update; then |
194 | 194 | # Save current revision. |
195 | - old_rev="$(--plugin-git rev-parse HEAD)" | |
195 | + local old_rev="$(--plugin-git rev-parse HEAD)" | |
196 | 196 | # Pull changes if update requested. |
197 | 197 | --plugin-git pull |
198 | 198 | # Get the new revision. |
199 | - new_rev="$(--plugin-git rev-parse HEAD)" | |
199 | + local new_rev="$(--plugin-git rev-parse HEAD)" | |
200 | 200 | fi |
201 | 201 | |
202 | 202 | # If its a specific branch that we want, checkout that branch. |