Skip to content

Instantly share code, notes, and snippets.

@half2me
Last active September 26, 2016 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save half2me/262e3c76447c407a3cee83b125132ec4 to your computer and use it in GitHub Desktop.
Save half2me/262e3c76447c407a3cee83b125132ec4 to your computer and use it in GitHub Desktop.
gitupdate.sh
#!/bin/bash
startDir=$(pwd)
echo "Updating ANT+ driver..."
cd /home/pi/libant/
git reset --hard HEAD
git pull
sudo python3 setup.py install
echo "Done!"
echo "Updating Firmware..."
cd /home/pi/antbot/
git reset --hard HEAD
git pull
echo "Done!"
cd $startDir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment