X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=update.sh;h=a4587a85da8be06c92dfe89693e48abd0f56ebc6;hb=1ed81a35c80c1f0aad3d1296d15603d89d6242be;hp=ed8f85ed84a8bb044a533627f5a090a4ac08276c;hpb=3e0bbeaa77f2305ae77c99654c3e46474fe0a0e2;p=matches%2Fhonours.git diff --git a/update.sh b/update.sh index ed8f85ed..a4587a85 100755 --- 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