mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
help: Properly error out when no browser is found
See #4045.
(cherry picked from commit 036b708d99)
This commit is contained in:
committed by
David Adam
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
|
||||
|
||||
Reference in New Issue
Block a user