From 7acefe8c3478c7d9816cdc8dea56989a3a26adfa Mon Sep 17 00:00:00 2001 From: John Starich Date: Wed, 12 Jul 2017 23:57:35 -0500 Subject: [PATCH] Fix issue with old zsh versions < 5.1.1 --- bin/antigen.zsh | 3 ++- src/lib/ensure-repo.zsh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/antigen.zsh b/bin/antigen.zsh index 6262f164..cbac5679 100644 --- a/bin/antigen.zsh +++ b/bin/antigen.zsh @@ -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 diff --git a/src/lib/ensure-repo.zsh b/src/lib/ensure-repo.zsh index 7229a281..05521a36 100644 --- a/src/lib/ensure-repo.zsh +++ b/src/lib/ensure-repo.zsh @@ -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