mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Better error message on no fish_plugins (#646)
This commit is contained in:
parent
72a40f13ce
commit
3edac36e38
1 changed files with 3 additions and 1 deletions
|
@ -27,8 +27,10 @@ function fisher -a cmd -d "Fish plugin manager"
|
|||
set --local new_plugins
|
||||
|
||||
if ! set --query argv[2]
|
||||
if test "$cmd" != update || test ! -e $fish_plugins
|
||||
if test "$cmd" != update
|
||||
echo "fisher: Not enough arguments for command: \"$cmd\"" >&2 && return 1
|
||||
else if test ! -e $fish_plugins
|
||||
echo "fisher: fish_plugins file not found: \"$cmd\"" >&2 && return 1
|
||||
end
|
||||
set arg_plugins (string match --regex --invert '^\s*$' -- <$fish_plugins)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue