summaryrefslogtreecommitdiff
path: root/bin/dw
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dw')
-rwxr-xr-xbin/dw7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/dw b/bin/dw
index 35e0863..2d758b1 100755
--- a/bin/dw
+++ b/bin/dw
@@ -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