summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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