[Linux] Increase git-sync synchronization interval

This commit is contained in:
Ivan Malison 2018-06-20 13:57:42 -07:00
parent 2a31ab5280
commit cea66e503f
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -5,7 +5,7 @@ cd "$1"
counter=0
while true; do
changedFile=$(inotifywait ./ -r -e modify,move,create,delete --format "%w%f" --exclude '\.git' -t 20 2>/dev/null)
changedFile=$(inotifywait ./ -r -e modify,move,create,delete --format "%w%f" --exclude '\.git' -t 60 2>/dev/null)
if [ -z "$changedFile" ]
then
counter=$((counter+1))