summaryrefslogtreecommitdiffstats
path: root/programs/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'programs/scripts')
-rwxr-xr-xprograms/scripts/watchfile.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/programs/scripts/watchfile.sh b/programs/scripts/watchfile.sh
new file mode 100755
index 0000000..064a226
--- /dev/null
+++ b/programs/scripts/watchfile.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+while inotifywait -e close_write $1; do $2; done