From a7540661a2b1b5aacd443c41652bcde6d1258561 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 25 Dec 2021 01:37:47 -0600 Subject: [PATCH] Ensured stderr doesn't get output from which when detecting brew --- install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bash b/install.bash index a826a03..d558ef0 100644 --- a/install.bash +++ b/install.bash @@ -6,7 +6,7 @@ required_packages=(universal-ctags fzf ripgrep neovim) # Handle Installation Per OS if [[ "$OSTYPE" == "darwin"* ]]; then - if ! which brew; then + if ! $(which brew) 2>/dev/null; then echo "Installing brew, why the fuck aren't you using it...?" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi