-
-
Save BuddhiLW/c84465fdf1e76a65c85bc136eb1c34fe to your computer and use it in GitHub Desktop.
Install buf (protobuf related tool -- gRPC)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
if [ -n $(command -v brew) ] | |
then | |
echo "Brew is installed" | |
echo "Continuing with brew-buf install" | |
brew install bufbuild/buf/buf | |
else | |
echo "Brew not installed" | |
echo "Installing it first..." | |
bash $DOTFILES/install/brew | |
## New bash session after install, to activate brew | |
bash | |
brew install bufbuild/buf/buf | |
fi | |
echo "Buf is, hopefully, installed." | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment