tweaks + readme

This commit is contained in:
Rik Berkelder 2025-02-13 00:14:14 +01:00
parent cf77f36a70
commit 98c1359554
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Example repo relating to a blog post.
Example repo relating to [this blog post](https://riksolo.com/blog/nextcloud-external-edits-2025-02-12/).
requires a working docker setup to run.

View File

@ -24,7 +24,11 @@ detect(){
# this uses inotifywait to watch for changes
# then it runs the code in the while block to handle file paths it spits out
inotifywait -mre close_write,delete --format '%e|%w|%f' --exclude "$EXCLUDE" "$WATCH" | while read RAWEVENT
inotifywait -mre close_write,delete \
--format '%e|%w|%f' \
--exclude "$EXCLUDE" \
"$WATCH" | while read RAWEVENT \
/
do
# inotifywait spits out the events like "eventtype|/directory|filename"
# here we split them into it's three parts.