diff options
author | Erich Eckner <git@eckner.net> | 2022-07-18 20:36:17 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-07-18 20:36:17 +0200 |
commit | 7e1d649fad1b62be9777fcbc40d1519b8e388ba2 (patch) | |
tree | 238118b0ffe88eb1dd13539f246b728699b348f9 | |
parent | 95ba90e3a78082e69488958adf104129bae49529 (diff) | |
download | khal-extras-7e1d649fad1b62be9777fcbc40d1519b8e388ba2.tar.xz |
watch-calendars: ignore .git, reorder arguments
-rwxr-xr-x | watch-calendars | 2 |
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 |