mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
Remove fetched plugins from the config when there is a fetch error. Fix #247.
This commit is contained in:
parent
2cbe6b6b53
commit
ccbdc42b7a
1 changed files with 8 additions and 1 deletions
|
@ -347,7 +347,7 @@ function __fisher_install
|
|||
|
||||
else
|
||||
__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_log info "
|
||||
|
@ -455,6 +455,13 @@ function __fisher_plugin_fetch_items
|
|||
for i in $fetched
|
||||
if test ! -d "$fisher_cache/$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
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue