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 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