Remove plugins if given full original name or url. Fix #291

This commit is contained in:
Jorge Bucaran 2016-05-20 08:24:16 +09:00
parent d6d4c5deaf
commit 36a9952f23
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -889,7 +889,7 @@ function __fisher_remove
__fisher_show_spinner
__fisher_plugin_decrement_ref_count "$name"
if test -f "$fisher_config/$i/fishfile"
if test -s "$fisher_config/$name/fishfile"
while read -l i
set -l name (__fisher_plugin_get_names "$i")[1]
@ -900,7 +900,7 @@ function __fisher_remove
end
__fisher_show_spinner
end < "$fisher_config/$i/fishfile"
end < "$fisher_config/$name/fishfile"
end
__fisher_plugin_disable "$fisher_config/$name"