Remove fetched plugins from the config when there is a fetch error. Fix #247.

This commit is contained in:
Jorge Bucaran 2016-05-02 01:11:24 +09:00
parent 487ffaca70
commit ad6110ac66
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -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