/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew -v
This command is used to see which version of Homebrew is installed. You will see command not found: brew if the install was not successful.
brew dr