3 # Script to update all the honours stuff on a regular basis
5 # Need to cd to the directory, otherwise nothing will work
6 directory="/home/sam/Documents/University/honours/"
9 # Need to do this too. Apparently
12 echo "Committing at $(date)" >> commits.log
16 git add thesis/proposal/*.tex
17 git add thesis/proposal/*.pdf
18 git add thesis/proposal/*.bib
22 git add course/semester2
25 git commit -m "Automatic commit at $(date)"
26 if [ "$?" == 0 ]; then