digital-garden-anabasis/autoupdate.sh

11 lines
243 B
Bash
Raw Normal View History

2020-12-05 22:14:06 +01:00
#!/bin/bash
2020-11-23 14:26:47 +01:00
while :;do
CHANGED="$(git diff --name-only|sed -e 's/^pages\///'|perl -E 'say join ", ", map {chomp; $_} <>')"
git pull && \
git add . && \
git commit -am "Automatic update, changed: ${CHANGED}" && \
git push
sleep 300
done