mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
help: Properly error out when no browser is found
See #4045.
(cherry picked from commit 036b708d99
)
This commit is contained in:
parent
291d88a72f
commit
3cca94b268
|
@ -71,7 +71,7 @@ function help --description 'Show help for the fish shell'
|
|||
end
|
||||
end
|
||||
|
||||
if not set -q fish_browser
|
||||
if not set -q fish_browser[1]
|
||||
printf (_ '%s: Could not find a web browser.\n') help
|
||||
printf (_ 'Please set the variable $BROWSER or fish_help_browser and try again.\n\n')
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user