Skip to content

Commit

Permalink
Fix issue with old zsh versions < 5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnStarich committed Jul 13, 2017
1 parent de8ab95 commit 7acefe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/antigen.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ antigen () {
shift $#

# Get the clone's directory as per the given repo url and branch.
local clone_dir=$(-antigen-get-clone-dir $url)
local clone_dir
clone_dir=$(-antigen-get-clone-dir $url)
if [[ -d "$clone_dir" && $update == false ]]; then
return true
fi
Expand Down
3 changes: 2 additions & 1 deletion src/lib/ensure-repo.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
shift $#

# Get the clone's directory as per the given repo url and branch.
local clone_dir=$(-antigen-get-clone-dir $url)
local clone_dir
clone_dir=$(-antigen-get-clone-dir $url)
if [[ -d "$clone_dir" && $update == false ]]; then
return true
fi
Expand Down

0 comments on commit 7acefe8

Please sign in to comment.