darkrc/bin/on-file-write

6 lines
103 B
Text
Raw Permalink Normal View History

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