digital-garden-anabasis/autoupdate.sh
2025-01-19 01:25:48 +01:00

10 lines
243 B
Bash
Executable file

#!/bin/bash
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