From 7e1d649fad1b62be9777fcbc40d1519b8e388ba2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Jul 2022 20:36:17 +0200 Subject: watch-calendars: ignore .git, reorder arguments --- watch-calendars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch-calendars b/watch-calendars index 0c74f89..4ba4250 100755 --- a/watch-calendars +++ b/watch-calendars @@ -20,7 +20,7 @@ if [ $# -eq 0 ]; then fi while [ -d "$1" ]; do - inotifywait -r "$1" -e CREATE,MOVED_TO,DELETE -t 30 + inotifywait --exclude .git -r -e CREATE,MOVED_TO,DELETE -t 30 "$1" git -C "$1" add -A git -C "$1" commit -m'update by '"$(whoami)"'@'"$(uname -n)"' on '"$(date)" git -C "$1" pull --rebase -- cgit v1.2.3-70-g09d2