From e74f0ab7142d318756246749c41f5848faa60162 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Mon, 6 Jan 2025 15:03:39 +0100 Subject: [PATCH] feat(setup-mac.sh): add installation checks for gh, pyenv, and pyenv-virtualenv to improve setup process build(setup-mac.sh): enhance brew installation logic for multiple dependencies docs(setup-mac.sh): provide clear instructions for installing missing dependencies refactor(setup-mac.sh): reorganize code for better readability and maintainability --- setup-mac.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/setup-mac.sh b/setup-mac.sh index aec5127..45b70ed 100755 --- a/setup-mac.sh +++ b/setup-mac.sh @@ -169,6 +169,31 @@ else curl -sSL https://install.python-poetry.org | python3 - fi +# Check if gh is installed +if command -v gh &> /dev/null; then + echo "gh is installed" +else + echo "gh is not installed" + echo "Installing gh with brew..." + brew install gh + +# Check if pyenv is installed + +if command -v pyenv &> /dev/null; then + echo "pyenv is installed." +else + echo "pyenv is not installed." + echo "Installing pyenv with brew..." + brew install pyenv + +# Check if pyenv-virtualenv is installed +if command -v pyenv &> /dev/null; then + echo "pyenv-virtualenv is installed." +else + echo "pyenv-virtualenv is not installed." + echo "Installing pyenv-virtualenv with brew..." + brew install pyenv-virtualenv + # Check if anaconda is installed if command -v conda &> /dev/null; then