Skip to content

Instantly share code, notes, and snippets.

@michaelwebb76
Created October 12, 2021 02:08
Show Gist options
  • Save michaelwebb76/3f92280d4f1713ebaf89740809b020ba to your computer and use it in GitHub Desktop.
Save michaelwebb76/3f92280d4f1713ebaf89740809b020ba to your computer and use it in GitHub Desktop.
#!/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