diff --git a/autoupdate.sh b/autoupdate.sh new file mode 100755 index 0000000..4482f7b --- /dev/null +++ b/autoupdate.sh @@ -0,0 +1,10 @@ +while :;do + CHANGED="$(git diff --name-only|sed -e 's/^pages\///'|perl -E 'say join ", ", map {chomp; $_} <>')" + git pull && \ + git lfs track pages/*.png && \ + git add . && \ + git commit -am "Automatic update, changed: ${CHANGED}" && \ + git push + + sleep 300 +done