X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=update.sh;h=8746d1cecfe66b053c41668dbda286f287c5e2c7;hb=e686cb7870050acedb15d3d6f480aae55546dcaf;hp=035b52e793a1e1676a7bd37d5dfc628cdce95d55;hpb=a053ff3353928c281359d1271d261fcf34c09331;p=matches%2Fhonours.git diff --git a/update.sh b/update.sh index 035b52e7..8746d1ce 100755 --- 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