From d86c1ce6637535bcafbadc3fa4264a452f1f4c1a Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 16 Nov 2023 08:42:41 +0100 Subject: update --- bin/dw | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3