1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/bin/watchbatch

8 lines
171 B
Text
Raw Normal View History

2024-06-08 19:24:31 +02:00
#!/usr/bin/env sh
todo=$(cat)
inotifywait --recursive --monitor -e create -e attrib -e modify -e move -e delete -- "$@" | \
while read -r _unused; do
eval "$todo"
done