Skip to content

Instantly share code, notes, and snippets.

@BuddhiLW
Created July 16, 2024 19:46
Show Gist options
  • Save BuddhiLW/c84465fdf1e76a65c85bc136eb1c34fe to your computer and use it in GitHub Desktop.
Save BuddhiLW/c84465fdf1e76a65c85bc136eb1c34fe to your computer and use it in GitHub Desktop.
Install buf (protobuf related tool -- gRPC)
#!/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