summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-11-16 08:42:41 +0100
committerMarc Vertes <mvertes@free.fr>2023-11-16 08:42:41 +0100
commitd86c1ce6637535bcafbadc3fa4264a452f1f4c1a (patch)
tree9ded35dc4bfe928db3d7e8f8d1fb1f3f4f166ae4
parentbe44a03173a1b8475c8970d773cc2e0d6e9bc117 (diff)
update
-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