Automatic commit at Wed Jul 25 16:58:01 WST 2012
[matches/honours.git] / update.sh
index 8746d1c..0eeb115 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -6,6 +6,9 @@
 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
@@ -21,5 +24,7 @@ git add course/semester2
 
 git commit -m "Automatic commit at $(date)"
 if [ "$?" == 0 ]; then
-       git push git.ucc
+       git push git.ucc 2>&1 >> commits.log
 fi
+
+#kill $SSH_AGENT_PID

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