# Script to update all the honours stuff on a regular basis
+# Need to cd to the directory, otherwise nothing will work
+directory="/home/sam/Documents/University/honours/"
+cd "$directory"
+
+# Need to do this too. Apparently
+##eval `ssh-agent -s`
+
git add update.sh
git add papers
git add research
git add thesis/*.bib
git add course/semester2
+
git commit -m "Automatic commit at $(date)"
if [ "$?" == 0 ]; then
- git push git.ucc
+ echo "Commit at $(date)" >> commits.log
+ git push git.ucc 2>&1 >> commits.log
fi
+
+#kill $SSH_AGENT_PID