1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 04:23:47 -05:00

Remove extraneous is_mac call

This commit is contained in:
Ivan Pozdeev
2022-09-17 04:54:04 +03:00
parent e6446555f3
commit aa07a3a37c
3 changed files with 10 additions and 10 deletions

View File

@@ -1330,7 +1330,7 @@ use_homebrew() {
can_use_homebrew || return 1
# unless Homebrew is at the default /usr/local, need to add its paths to
# compiler search to be able to use non-keg-only deps from there
if is_mac && command -v brew &>/dev/null; then
if command -v brew &>/dev/null; then
local brew_prefix="$(brew --prefix 2>/dev/null || true)"
# /usr/local/lib:/usr/lib is the default library search path
if [[ -n $brew_prefix && $brew_prefix != "/usr" && $brew_prefix != "/usr/local" ]]; then