From 666af0b4a5695b2d2fd2f357d24f6fa1dafce5c4 Mon Sep 17 00:00:00 2001 From: justuser Date: Fri, 10 Jan 2025 20:20:36 +0300 Subject: [PATCH] sync --- sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'