From 385df5d2036c428eb58c2267d61c5f705ba9ce03 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 25 Dec 2021 01:42:16 -0600 Subject: [PATCH] Fixed which improperly returning 1 exit code no matter what --- install.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bash b/install.bash index d558ef0..1903ec6 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) 2>/dev/null; then + if ! which brew 2>&1 1>/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