Automatic commit at Wed Jul 25 17:00:01 WST 2012
[matches/honours.git] / update.sh
index a4587a8..ec8888f 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -7,9 +7,8 @@ directory="/home/sam/Documents/University/honours/"
 cd "$directory" 
 
 # Need to do this too. Apparently
-eval `ssh-agent -s`
+##eval `ssh-agent -s`
 
-echo "Committing at $(date)" >> commits.log
 git add update.sh
 git add papers
 git add research
@@ -24,7 +23,8 @@ 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
+#kill $SSH_AGENT_PID

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