From 762c1efb5e371a83203a99f89b93653c288a64c4 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Sun, 8 Aug 2021 22:00:42 -0400 Subject: [PATCH] completion/brew: use `$OSTYPE` instead of `$(uname)` --- completion/available/brew.completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion/available/brew.completion.bash b/completion/available/brew.completion.bash index 91c288de..2149d20d 100644 --- a/completion/available/brew.completion.bash +++ b/completion/available/brew.completion.bash @@ -5,7 +5,7 @@ about-completion "brew completion" # Load late to make sure `system` completion loads first # BASH_IT_LOAD_PRIORITY: 375 -if [[ "$(uname -s)" != 'Darwin' ]]; then +if [[ "$OSTYPE" != 'darwin'* ]]; then _log_warning "unsupported operating system - only 'Darwin' is supported" return 0 fi