mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Remove fetched plugins from the config when there is a fetch error. Fix #247.
This commit is contained in:
parent
487ffaca70
commit
ad6110ac66
1 changed files with 8 additions and 1 deletions
|
@ -347,7 +347,7 @@ function __fisher_install
|
||||||
|
|
||||||
else
|
else
|
||||||
__fisher_log error "
|
__fisher_log error "
|
||||||
There was an error cloning @$fetched@ or more plugin/s.
|
There was an error installing @$fetched@ or more plugin/s.
|
||||||
" $__fisher_stderr
|
" $__fisher_stderr
|
||||||
|
|
||||||
__fisher_log info "
|
__fisher_log info "
|
||||||
|
@ -455,6 +455,13 @@ function __fisher_plugin_fetch_items
|
||||||
for i in $fetched
|
for i in $fetched
|
||||||
if test ! -d "$fisher_cache/$i"
|
if test ! -d "$fisher_cache/$i"
|
||||||
printf "%s\n" "$i"
|
printf "%s\n" "$i"
|
||||||
|
|
||||||
|
for i in $fetched
|
||||||
|
if test -d "$fisher_config/$i"
|
||||||
|
command rm -rf "$fisher_config/$i"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue