Commit 9a97880f48d57456f7bd36e82ad5f53960dff462
Merge branch 'master' of github.com:zsh-users/antigen
Showing 1 changed file Side-by-side Diff
antigen.zsh
| ... | ... | @@ -241,9 +241,9 @@ antigen-revert () { |
| 241 | 241 | # implementation once tests are ready. |
| 242 | 242 | local script_loc="$(ls "$location" | grep -m1 '\.plugin\.zsh$')" |
| 243 | 243 | |
| 244 | - if [[ -f $script_loc ]]; then | |
| 244 | + if [[ -f $location/$script_loc ]]; then | |
| 245 | 245 | # If we have a `*.plugin.zsh`, source it. |
| 246 | - source "$script_loc" | |
| 246 | + source "$location/$script_loc" | |
| 247 | 247 | |
| 248 | 248 | elif [[ ! -z "$(ls "$location" | grep -m1 '\.zsh$')" ]]; then |
| 249 | 249 | # If there is no `*.plugin.zsh` file, source *all* the `*.zsh` |