Tweak error messages

This commit is contained in:
Jorge Bucaran 2020-11-05 15:09:55 +09:00
parent 07b7fc79d7
commit 479bb3cd36
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -46,7 +46,7 @@ function fisher -a cmd -d "fish plugin manager"
if not set -q argv[2] if not set -q argv[2]
if test "$cmd" != update if test "$cmd" != update
echo "fisher: invalid number of arguments (see `fisher -h`)" >&2 && return 1 echo "fisher: invalid number of arguments -- see `fisher -h`" >&2 && return 1
end end
test -e $fish_plugins && set -l new_plugins (_fisher_plugin_parse (string trim <$fish_plugins)) test -e $fish_plugins && set -l new_plugins (_fisher_plugin_parse (string trim <$fish_plugins))
@ -99,7 +99,7 @@ function fisher -a cmd -d "fish plugin manager"
command cp -Rf \$tmp/*/* $fisher_data/$plugin command cp -Rf \$tmp/*/* $fisher_data/$plugin
command rm -rf \$tmp command rm -rf \$tmp
else else
echo fisher: cannot install \"$plugin\" \(is this a valid plugin\?\) >&2 echo fisher: cannot install \"$plugin\" -- is this a valid plugin\? >&2
end end
end end
" >/dev/null & " >/dev/null &
@ -169,7 +169,7 @@ function fisher -a cmd -d "fish plugin manager"
test -s $fish_plugins || test "$cmd" = remove test -s $fish_plugins || test "$cmd" = remove
case \* case \*
echo "fisher: unknown flag or command \"$cmd\" (see `fisher -h)`" >&2 echo "fisher: unknown flag or command \"$cmd\" -- see `fisher -h`" >&2
return 1 return 1
end end
end end