mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-05 09:32:37 +02:00
better prompt for user when delete broken plugin
This commit is contained in:
parent
6cf46b1a99
commit
ef2384153a
1 changed files with 3 additions and 2 deletions
|
@ -75,11 +75,12 @@ function -S __fisher_plugin_fetch
|
|||
if test -L "$path"
|
||||
set -l realpath (command readlink "$path")
|
||||
if __fisher_file_remove "$realpath" "$fisher_file"
|
||||
debug "fishfile remove broken link %s ok" "$realpath"
|
||||
debug "Remove broken plugin %s(%s) ok" "$name" "$realpath"
|
||||
else
|
||||
debug "fishfile remove broken link %s fail" "$realpath"
|
||||
debug "Remove broken plugin %s(%s) fail" "$name" "$realpath"
|
||||
end
|
||||
end
|
||||
|
||||
if not set -q __fisher_fetch_status
|
||||
set -g __fisher_fetch_status
|
||||
printf "Installing plugin/s\n" > $stderr
|
||||
|
|
Loading…
Reference in a new issue