Last active
March 30, 2016 20:35
-
-
Save DanTup/bcdf20cb300e40c628e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
PI_REPO="https://[email protected]/DanTup/Pi.git" | |
# Danny's Pi Setup script | |
# | |
# This script is intended to be run from a newly set up Raspbian install. It just clones my | |
# (private) Pi repo which contains further scripts and executes them. It will prompt for a | |
# GitHub access key during the clone because the repo is private. | |
# | |
# Run with: | |
# bash <(curl -sSL https://gist.github.com/DanTup/bcdf20cb300e40c628e8/raw/Setup) | |
mkdir -p ~/Documents | |
pushd ~/Documents | |
if [ -d Repo ]; then | |
popd | |
echo | |
echo "Repo already exists! Have you done this before?" | |
exit 1 | |
fi | |
sudo apt-get update -y && sudo apt-get dist-upgrade -y | |
sudo apt-get install git -y | |
echo | |
echo "Cloning $PI_REPO..." | |
git clone --recursive $PI_REPO Repo | |
echo | |
echo "Executing setup script..." | |
Repo/Scripts/CleanSetup | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment