darkrc/bin/on-file-write

5 lines
103 B
Bash
Executable file

#!/bin/sh
while inotifywait --recursive --event CLOSE_WRITE . > /dev/null 2>&1
do $SHELL -c "$@"
done