From 29218a069c5b3a3a6852166b1d9a0f7485b3889c Mon Sep 17 00:00:00 2001 From: detailyang Date: Sat, 9 Apr 2016 16:25:07 +0800 Subject: [PATCH] use test -L and -e to judge whether file exists. --- functions/__fisher_plugin_fetch.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/__fisher_plugin_fetch.fish b/functions/__fisher_plugin_fetch.fish index 685bd48..c5df0d9 100644 --- a/functions/__fisher_plugin_fetch.fish +++ b/functions/__fisher_plugin_fetch.fish @@ -10,7 +10,6 @@ function -S __fisher_plugin_fetch end debug "validate ok %s" "$item" - if contains -- "$item" $enabled if test -z "$option" set skipped $skipped "$item" @@ -71,7 +70,7 @@ function -S __fisher_plugin_fetch printf "%s\n" "$name" debug "plugin %s" "$name" - if test ! -e $path + if test ! -e $path -a ! -L $path if not set -q __fisher_fetch_status set -g __fisher_fetch_status printf "Installing plugin/s\n" > $stderr