Skip to content

Instantly share code, notes, and snippets.

@wowufoundme
Last active June 17, 2019 15:08
Show Gist options
  • Save wowufoundme/963e7f4035b7737a715f61d451b5c7c1 to your computer and use it in GitHub Desktop.
Save wowufoundme/963e7f4035b7737a715f61d451b5c7c1 to your computer and use it in GitHub Desktop.
Small script to initialize repo for building and compiling custom ROMS
# Remove previous repo versions
sudo rm -rf ~/bin/repo
# Make the bin directory to store the repo tool
mkdir -p ~/bin
# Add bin to PATH variable
PATH=~/bin:$PATH
# Download the latest repo tool from Google
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
# Give proper permissions to the tool!
chmod a+x ~/bin/repo
echo "Success"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment