mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Only do the macOS apropos thing if makewhatis is available
This won't work without it, and happens to be broken on jailbroken iOS. Fixes #8205.
This commit is contained in:
parent
0059192f61
commit
fcbf303e05
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.)
|
|||
|
||||
if test $status -eq 0 -a (count $sysver) -eq 3
|
||||
and test $sysver[2] = Darwin -a $sysver[3] -ge 19
|
||||
and test -x /usr/libexec/makewhatis
|
||||
|
||||
set -l dir
|
||||
if test -n "$XDG_CACHE_HOME"
|
||||
|
|
Loading…
Reference in a new issue