Created
October 12, 2021 02:08
-
-
Save michaelwebb76/3f92280d4f1713ebaf89740809b020ba to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
set -e | |
if ! command -v git &> /dev/null | |
then | |
echo "git could not be found - installing xcode development tools" | |
xcode-select --install | |
else | |
echo "Found git!" | |
fi | |
if ! command -v git-lfs &> /dev/null | |
then | |
echo "git-lfs could not be found - installing brew and then git lfs with brew" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install git-lfs | |
git lfs install | |
else | |
echo "Found git-lfs!" | |
fi | |
echo "Good to go!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment