tweaks + readme
This commit is contained in:
parent
cf77f36a70
commit
98c1359554
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue