diff options
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 |
