From ef2384153a0fa38387c7a2ea58c09d31d11b2ca9 Mon Sep 17 00:00:00 2001 From: detailyang Date: Mon, 11 Apr 2016 09:50:40 +0800 Subject: [PATCH] better prompt for user when delete broken plugin --- functions/__fisher_plugin_fetch.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/__fisher_plugin_fetch.fish b/functions/__fisher_plugin_fetch.fish index 3b2b569..388f06d 100644 --- a/functions/__fisher_plugin_fetch.fish +++ b/functions/__fisher_plugin_fetch.fish @@ -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