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
This commit is contained in:
David Ibia
2025-01-06 15:03:39 +01:00
parent 451a0dcdf7
commit e74f0ab714

View File

@@ -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