diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2023-09-24 20:33:22 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2023-09-24 20:33:22 -0400 |
commit | b28259b353c3ee2d51a7cbdf0e90136ae846b68d (patch) | |
tree | af4fb1c41b6fa346b9a55832228645f4dd4d68fe /programs/scripts | |
parent | 59328d463daf5c7af066e284c7f9072e8da02f1f (diff) | |
download | nix-config-b28259b353c3ee2d51a7cbdf0e90136ae846b68d.tar.gz nix-config-b28259b353c3ee2d51a7cbdf0e90136ae846b68d.tar.bz2 nix-config-b28259b353c3ee2d51a7cbdf0e90136ae846b68d.zip |
add watchfile script
Diffstat (limited to 'programs/scripts')
-rwxr-xr-x | programs/scripts/watchfile.sh | 2 |
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 |