mirror of
https://git.sdbs.cz/sdbs/digital-garden-anabasis.git
synced 2025-01-22 11:05:46 +01:00
11 lines
275 B
Bash
Executable file
11 lines
275 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 lfs track pages/*.png && \
|
|
git add . && \
|
|
git commit -am "Automatic update, changed: ${CHANGED}" && \
|
|
git push
|
|
|
|
sleep 300
|
|
done
|