__fish_apropos: fixup broken macOS version check

Due to the parens, this prints the version twice.  Fixes 49023adec7
(Consolidate some calls to uname(1) around shell startup, 2025-03-05).
This commit is contained in:
Johannes Altmanninger
2025-03-05 14:28:16 +01:00
parent 54f9778003
commit 4ff94b657f

View File

@@ -6,7 +6,7 @@ end
# Check for macOS Catalina or above.
if test (__fish_uname) = Darwin
and test (string match -r "(\d+)" "$(uname -r)") -ge 19
and test (string match -r "^\d+" "$(uname -r)") -ge 19
and test -x /usr/libexec/makewhatis
set -l dir