From 3439112aa19fec0f38ec6f35061a2e1d765c2bc0 Mon Sep 17 00:00:00 2001 From: justuser Date: Wed, 15 Jan 2025 13:44:23 +0300 Subject: [PATCH] sync --- syncV2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syncV2.sh b/syncV2.sh index 0d3ddfa..8eeb718 100755 --- a/syncV2.sh +++ b/syncV2.sh @@ -8,8 +8,8 @@ git push while true do clear -# Update if file changed 10 seconds ago -last_changed=$(find . -newermt "10 seconds ago" | grep -v .git) +# Update if file changed 5 seconds ago +last_changed=$(find . -newermt "5 seconds ago" | grep -v .git) if [ "$last_changed" != "" ]; then echo -e "Status: \e[31mnot synced\e[0m" read -p "Press any key to sync." @@ -18,7 +18,7 @@ if [ "$last_changed" != "" ]; then git push clear echo -e "Status: \e[33msleep...\e[0m" - sleep 10 + sleep 5 else echo -e "Status: \e[32msynced\e[0m" sleep 1