Automatic commit at Wed Jul 25 16:38:01 WST 2012
[matches/honours.git] / update.sh
index 035b52e..8746d1c 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -2,11 +2,11 @@
 
 # Script to update all the honours stuff on a regular basis
 
-# I am testing the script by adding this comment here. Hopefully in 2 minutes time it will be committed.
-
-# TEST to make sure cron actually works
-echo "It worked" >> test.cron
+# Need to cd to the directory, otherwise nothing will work
+directory="/home/sam/Documents/University/honours/"
+cd "$directory" 
 
+echo "Committing at $(date)" >> commits.log
 git add update.sh
 git add papers
 git add research
@@ -18,6 +18,7 @@ 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

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