tweaks + readme
This commit is contained in:
parent
cf77f36a70
commit
98c1359554
|
@ -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.
|
requires a working docker setup to run.
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,11 @@ detect(){
|
||||||
|
|
||||||
# this uses inotifywait to watch for changes
|
# this uses inotifywait to watch for changes
|
||||||
# then it runs the code in the while block to handle file paths it spits out
|
# 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
|
do
|
||||||
# inotifywait spits out the events like "eventtype|/directory|filename"
|
# inotifywait spits out the events like "eventtype|/directory|filename"
|
||||||
# here we split them into it's three parts.
|
# here we split them into it's three parts.
|
||||||
|
|
Loading…
Reference in New Issue