mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-05 09:32:37 +02:00
wrap variable with double quotes for robustness
This commit is contained in:
parent
2081220ce4
commit
6cf46b1a99
1 changed files with 4 additions and 4 deletions
|
@ -71,9 +71,9 @@ function -S __fisher_plugin_fetch
|
|||
printf "%s\n" "$name"
|
||||
debug "plugin %s" "$name"
|
||||
|
||||
if test ! -e $path
|
||||
if test -L $path
|
||||
set -l realpath (command readlink $path)
|
||||
if test ! -e "$path"
|
||||
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"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue