diff --git a/sync.sh b/sync.sh index 84c8f65..4db5e88 100755 --- a/sync.sh +++ b/sync.sh @@ -7,7 +7,7 @@ while true do #last_changed=$(find . -mmin -1) # 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 git add * git commit -m 'sync'