completion/brew: use `$OSTYPE` instead of `$(uname)`

pull/1911/head
John D Pell 2021-08-08 22:00:42 -04:00
parent 0c6e88402c
commit 762c1efb5e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ about-completion "brew completion"
# Load late to make sure `system` completion loads first # Load late to make sure `system` completion loads first
# BASH_IT_LOAD_PRIORITY: 375 # BASH_IT_LOAD_PRIORITY: 375
if [[ "$(uname -s)" != 'Darwin' ]]; then if [[ "$OSTYPE" != 'darwin'* ]]; then
_log_warning "unsupported operating system - only 'Darwin' is supported" _log_warning "unsupported operating system - only 'Darwin' is supported"
return 0 return 0
fi fi