Ensured stderr doesn't get output from which when detecting brew

This commit is contained in:
Price Hiller 2021-12-25 01:37:47 -06:00
parent 204d95558b
commit a7540661a2

View File

@ -6,7 +6,7 @@ required_packages=(universal-ctags fzf ripgrep neovim)
# Handle Installation Per OS # Handle Installation Per OS
if [[ "$OSTYPE" == "darwin"* ]]; then 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...?" 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)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi fi