Use command instead of type to check if brew is already in path
This commit is contained in:
@@ -997,7 +997,7 @@ esac
|
||||
# show different instructions on adding Homebrew to path based on if the user has already done so
|
||||
if grep -qs "eval \"\$(${HOMEBREW_PREFIX}/bin/brew shellenv)\"" "${shell_profile}"
|
||||
then
|
||||
if ! type brew &>/dev/null
|
||||
if ! [[ -x "$(command -v brew)" ]]
|
||||
then
|
||||
cat <<EOS
|
||||
- Run this command in your terminal to add Homebrew to your ${tty_bold}PATH${tty_reset}:
|
||||
|
||||
Reference in New Issue
Block a user