Fix bug breaking local plugins where name ends in `.fish`

pull/627/head
Jorge Bucaran 4 years ago
parent 210db6a46b
commit b808e7318a
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -31,7 +31,7 @@ function fisher -a cmd -d "fish plugin manager"
set -l plugins $argv[2..-1] $list
if set -q plugins[1]
for plugin in (_fisher_plugin_parse $argv[2..-1])
for plugin in (_fisher_plugin_parse $plugins)
if contains -- "$plugin" $old_plugins
if test "$cmd" = install || test "$cmd" = update
set -a update_plugins $plugin
@ -70,7 +70,7 @@ function fisher -a cmd -d "fish plugin manager"
fish -c "
if test -e $plugin
command mkdir -p $fisher_data/@$USER
set target $fisher_data/@$USER/(string replace --all --regex '^.*/|\.fish\$' \"\" $plugin)
set target $fisher_data/@$USER/(string replace --all --regex '^.*/' \"\" $plugin)
test -L \$target || command ln -sf $plugin \$target
else
set temp (command mktemp -d)

Loading…
Cancel
Save