mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Update plugins on install if they are already installed, close #599
This commit is contained in:
parent
3077649891
commit
f97dc3b47d
1 changed files with 1 additions and 3 deletions
|
@ -67,9 +67,7 @@ function fisher -a cmd -d "fish plugin manager"
|
|||
else
|
||||
for plugin in (_fisher_plugin_parse $argv[2..-1])
|
||||
if contains -- "$plugin" $old_plugins
|
||||
if test "$cmd" = install
|
||||
echo "fisher: \"$plugin\" is already installed (try `fisher update $plugin`)" >&2 && return 1
|
||||
else if test "$cmd" = update
|
||||
if test "$cmd" = install || test "$cmd" = update
|
||||
set -a update_plugins $plugin
|
||||
else
|
||||
set -a remove_plugins $plugin
|
||||
|
|
Loading…
Reference in a new issue