sync
This commit is contained in:
parent
0fd5755a15
commit
666af0b4a5
2
sync.sh
2
sync.sh
@ -7,7 +7,7 @@ while true
|
|||||||
do
|
do
|
||||||
#last_changed=$(find . -mmin -1)
|
#last_changed=$(find . -mmin -1)
|
||||||
# Update if file changed 10 seconds ago
|
# Update if file changed 10 seconds ago
|
||||||
last_changed=$(find . -newermt "10 seconds ago")
|
last_changed=$(find . -newermt "10 seconds ago" | grep -v .git)
|
||||||
if [ "$last_changed" != "" ]; then
|
if [ "$last_changed" != "" ]; then
|
||||||
git add *
|
git add *
|
||||||
git commit -m 'sync'
|
git commit -m 'sync'
|
||||||
|
Loading…
Reference in New Issue
Block a user