s/FILE/LINE
This commit is contained in:
parent
7f6334f743
commit
d9e9a03645
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue