From b29510ce70f455b14315f20720a3edecabd60340 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Tue, 24 Jul 2012 23:08:37 +0530 Subject: [PATCH] Small code reorganization. --- antigen.zsh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index df87ed6..f37c9a5 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -29,12 +29,6 @@ antigen-bundle () { i=$(($i + 1)) done - # Check if url is just the plugin name. Super short syntax. - if [[ "$url" != */* ]]; then - loc="plugins/$url" - url="$ANTIGEN_DEFAULT_REPO_URL" - fi - # Set spec values from keyword arguments, if any. The remaining arguments # are all assumed to be keyword arguments. while [[ $1 == --* ]]; do @@ -51,6 +45,12 @@ antigen-bundle () { shift done + # Check if url is just the plugin name. Super short syntax. + if [[ "$url" != */* ]]; then + loc="plugins/$url" + url="$ANTIGEN_DEFAULT_REPO_URL" + fi + # Resolve the url. url="$(-antigen-resolve-bundle-url "$url")" -- 2.0.0