Automatic commit at Wed Jul 25 16:51:01 WST 2012
[matches/honours.git] / update.sh
index ed8f85e..a4587a8 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -2,6 +2,14 @@
 
 # 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`
+
+echo "Committing at $(date)" >> commits.log
 git add update.sh
 git add papers
 git add research
@@ -13,7 +21,10 @@ git add thesis/*.pdf
 git add thesis/*.bib
 git add course/semester2
 
+
 git commit -m "Automatic commit at $(date)"
 if [ "$?" == 0 ]; then
        git push git.ucc
 fi
+
+kill $SSH_AGENT_PID

UCC git Repository :: git.ucc.asn.au