Update plugins if given full original name or url. Fix #290.

This commit is contained in:
Jorge Bucaran 2016-05-20 08:19:27 +09:00
parent 53e23ee886
commit d6d4c5deaf
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

View File

@ -604,19 +604,20 @@ function __fisher_update
end
for i in $argv
set -l path "$fisher_config/$i"
set -l name (__fisher_plugin_get_names "$i")[1]
set -l path "$fisher_config/$name"
if test -d "$path"
set updated $updated "$i"
set updated $updated "$name"
if test -L "$fisher_config/$i"
if test -L "$fisher_config/$name"
set links (math "$links + 1")
continue
end
set jobs $jobs (__fisher_update_path_async "$i" "$path")
set jobs $jobs (__fisher_update_path_async "$name" "$path")
else
__fisher_log error "Skipped @$i@"
__fisher_log error "Skipped @$name@"
end
end