diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-11-16 08:42:41 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-11-16 08:42:41 +0100 |
| commit | d86c1ce6637535bcafbadc3fa4264a452f1f4c1a (patch) | |
| tree | 9ded35dc4bfe928db3d7e8f8d1fb1f3f4f166ae4 /bin/dw | |
| parent | be44a03173a1b8475c8970d773cc2e0d6e9bc117 (diff) | |
update
Diffstat (limited to 'bin/dw')
| -rwxr-xr-x | bin/dw | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,4 +3,9 @@ # Execute given command when current dir content changes. trap exit SIGINT -while true; do "$@"; fswatch -1 . >/dev/null 2>&1; done +while true; do + "$@" + x=$? c=$((c+1)) + echo "# $c $(date +%H:%M:%S): $@: exit $x" + fswatch -1 . >/dev/null 2>&1 +done |
