ltcp/aufgabe4/cron.daily/git-commit-log

7 lines
144 B
Bash
Executable File

#!/bin/bash
GIT_HOME=/var/log
find /var/log -iname \*.log | xargs git add
git commit -m "daily autocommit"
git push --force origin master:logs