summaryrefslogtreecommitdiff
path: root/bin/dw
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-11-08 15:10:33 +0100
committerMarc Vertes <mvertes@free.fr>2023-11-08 15:10:33 +0100
commitbe44a03173a1b8475c8970d773cc2e0d6e9bc117 (patch)
tree8bfe01715be2b16e723617410daecdd2df026ed1 /bin/dw
parentbdb09c08d24f4bb4e1acbd50fc1eb236d5c78cbe (diff)
update
Diffstat (limited to 'bin/dw')
-rwxr-xr-xbin/dw8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/dw b/bin/dw
index b000d58..35e0863 100755
--- a/bin/dw
+++ b/bin/dw
@@ -1,10 +1,6 @@
#!/bin/sh
# Execute given command when current dir content changes.
-#
-trap exit SIGINT
-while true; do
- fswatch -1 . >/dev/null 2>&1
- "$@"
-done
+trap exit SIGINT
+while true; do "$@"; fswatch -1 . >/dev/null 2>&1; done