mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue