Commit b29510ce70f455b14315f20720a3edecabd60340
1 parent
4dceca4855
Small code reorganization.
Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -29,12 +29,6 @@ antigen-bundle () { |
29 | 29 | i=$(($i + 1)) |
30 | 30 | done |
31 | 31 | |
32 | - # Check if url is just the plugin name. Super short syntax. | |
33 | - if [[ "$url" != */* ]]; then | |
34 | - loc="plugins/$url" | |
35 | - url="$ANTIGEN_DEFAULT_REPO_URL" | |
36 | - fi | |
37 | - | |
38 | 32 | # Set spec values from keyword arguments, if any. The remaining arguments |
39 | 33 | # are all assumed to be keyword arguments. |
40 | 34 | while [[ $1 == --* ]]; do |
... | ... | @@ -51,6 +45,12 @@ antigen-bundle () { |
51 | 45 | shift |
52 | 46 | done |
53 | 47 | |
48 | + # Check if url is just the plugin name. Super short syntax. | |
49 | + if [[ "$url" != */* ]]; then | |
50 | + loc="plugins/$url" | |
51 | + url="$ANTIGEN_DEFAULT_REPO_URL" | |
52 | + fi | |
53 | + | |
54 | 54 | # Resolve the url. |
55 | 55 | url="$(-antigen-resolve-bundle-url "$url")" |
56 | 56 |