I want to run a command each time a directory is updated (new/changed file within). I found this thread suggesting entr
. I've made a script applying entr
but it doesn't seem to work as intended.
#!/bin/bash
ls -d * /Users/me/test | entr echo hey
when I run the script it echos "hey" once, but if I add new files to test
stdout just hangs without echoing another "hey".