UP
This commit is contained in:
parent
bf6b68bb5e
commit
bc7a04373d
17
sync.sh
Normal file
17
sync.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Update at the start (we don't know if file changed)
|
||||||
|
git add *
|
||||||
|
git commit -m 'sync'
|
||||||
|
git push
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
#last_changed=$(find . -mmin -1)
|
||||||
|
# Update if file changed 10 seconds ago
|
||||||
|
last_changed=$(find . -type f -newermt "10 seconds ago")
|
||||||
|
if [ "$last_changed" != "" ]; then
|
||||||
|
git add *
|
||||||
|
git commit -m 'sync'
|
||||||
|
git push
|
||||||
|
fi
|
||||||
|
sleep 5
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user