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:
Fabian Homborg 2021-08-04 18:55:01 +02:00
parent 0059192f61
commit fcbf303e05

View file

@ -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"