summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-07-18 20:36:17 +0200
committerErich Eckner <git@eckner.net>2022-07-18 20:36:17 +0200
commit7e1d649fad1b62be9777fcbc40d1519b8e388ba2 (patch)
tree238118b0ffe88eb1dd13539f246b728699b348f9
parent95ba90e3a78082e69488958adf104129bae49529 (diff)
downloadkhal-extras-7e1d649fad1b62be9777fcbc40d1519b8e388ba2.tar.xz
watch-calendars: ignore .git, reorder arguments
-rwxr-xr-xwatch-calendars2
1 files changed, 1 insertions, 1 deletions
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