mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-02 19:21:15 -03:00
__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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user