Automatic commit Wed Jul 25 17:37:01 WST 2012
authorSam Moore <[email protected]>
Wed, 25 Jul 2012 09:37:01 +0000 (17:37 +0800)
committerSam Moore <[email protected]>
Wed, 25 Jul 2012 09:37:01 +0000 (17:37 +0800)
update.sh

index 9992d69..1646d81 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -23,7 +23,8 @@ $git add thesis/*.bib
 $git add course/semester2
 
 #Dammit why fortune not work!
-$git commit -m "Automatic commit. $(fortune -s)"
+message=$(echo "Automatic commit $(date)"; fortune -s; echo "")
+$git commit -m "$message"
 if [ "$?" == 0 ]; then
        echo "Commit at $(date)" >> commits.log
        $git push git.ucc 2>&1 >> commits.log

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