mirror of
https://github.com/jorgebucaran/fisher
synced 2024-08-17 12:31:05 +02:00
Update plugins if given full original name or url. Fix #290.
This commit is contained in:
parent
a4bb161d31
commit
a0a0e3698a
1 changed files with 6 additions and 5 deletions
11
fisher.fish
11
fisher.fish
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue