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