mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-05 09:32:37 +02:00
use test -L and -e to judge whether file exists.
This commit is contained in:
parent
fe9ad5fb45
commit
29218a069c
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ function -S __fisher_plugin_fetch
|
||||||
end
|
end
|
||||||
|
|
||||||
debug "validate ok %s" "$item"
|
debug "validate ok %s" "$item"
|
||||||
|
|
||||||
if contains -- "$item" $enabled
|
if contains -- "$item" $enabled
|
||||||
if test -z "$option"
|
if test -z "$option"
|
||||||
set skipped $skipped "$item"
|
set skipped $skipped "$item"
|
||||||
|
@ -71,7 +70,7 @@ function -S __fisher_plugin_fetch
|
||||||
printf "%s\n" "$name"
|
printf "%s\n" "$name"
|
||||||
debug "plugin %s" "$name"
|
debug "plugin %s" "$name"
|
||||||
|
|
||||||
if test ! -e $path
|
if test ! -e $path -a ! -L $path
|
||||||
if not set -q __fisher_fetch_status
|
if not set -q __fisher_fetch_status
|
||||||
set -g __fisher_fetch_status
|
set -g __fisher_fetch_status
|
||||||
printf "Installing plugin/s\n" > $stderr
|
printf "Installing plugin/s\n" > $stderr
|
||||||
|
|
Loading…
Reference in a new issue