{ "name": "entr", "version": "5.8", "summary": "entr: runs a command again whenever one of the given files changes", "category": "tool", "license": "ISC", "homepage": "https://eradman.com/entrproject/", "source": { "url": "https://eradman.com/entrproject/code/entr-5.8.tar.gz", "sha256": "dc9a2bdc556b2be900c1d8cdf432de26492de5af3ffade000d4bfd97f3122bfb" }, "watch": {"kind": "index", "url": "https://eradman.com/entrproject/code/", "regex": "entr-([0-9]+\\.[0-9]+)\\.tar\\.gz"}, "deps": [], "env_packages": [], "static": true, "nss": true, "check": "{ bin/entr 2>&1 || true; } | has 'release: 5.8' && t=$(mktemp -d) && echo one > \"$t/watched\" && { echo \"$t/watched\" | bin/entr -npz sh -c 'cat \"$1\" > \"$2\"' sh \"$t/watched\" \"$t/ran\" & echo $! > \"$t/pid\"; } && i=0 && while [ ! -s \"$t/ran\" ] && [ $i -lt 50 ]; do echo two > \"$t/watched\"; sleep 0.2; i=$((i + 1)); done && has -x two < \"$t/ran\" && echo 'entr: ran a command when the watched file changed'; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }