s/FILE/LINE

This commit is contained in:
Philippe Pittoli 2024-11-24 09:50:01 +01:00
parent 7f6334f743
commit d9e9a03645
3 changed files with 3 additions and 3 deletions

View File

@ -38,4 +38,4 @@ action() {
# - delete: a domain has been removed # - delete: a domain has been removed
opts="-e moved_to -e delete -m" opts="-e moved_to -e delete -m"
echo "inotifywait ${opts} --format '%:e %f' $DNSMANDIR" echo "inotifywait ${opts} --format '%:e %f' $DNSMANDIR"
inotifywait ${opts} --format '%:e %f' $DNSMANDIR | while read FILE; do action $FILE ; done inotifywait ${opts} --format '%:e %f' $DNSMANDIR | while read LINE; do action $LINE ; done

View File

@ -61,4 +61,4 @@ action() {
# - delete: a domain has been removed # - delete: a domain has been removed
opts="-e moved_to -e delete -m" opts="-e moved_to -e delete -m"
echo "inotifywait ${opts} --format '%:e %f' $DIR" echo "inotifywait ${opts} --format '%:e %f' $DIR"
inotifywait ${opts} --format '%:e %f' $DIR | while read FILE; do action $FILE ; done inotifywait ${opts} --format '%:e %f' $DIR | while read LINE; do action $LINE ; done

View File

@ -39,4 +39,4 @@ action() {
# - delete: a domain has been removed # - delete: a domain has been removed
opts="-e close_write -e delete -m" opts="-e close_write -e delete -m"
echo "inotifywait ${opts} --format '%:e %f' $DIR" echo "inotifywait ${opts} --format '%:e %f' $DIR"
inotifywait ${opts} --format '%:e %f' $DIR | while read FILE; do action $FILE ; done inotifywait ${opts} --format '%:e %f' $DIR | while read LINE; do action $LINE ; done