mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user