Add bin scripts

This commit is contained in:
Oliver Davies 2023-01-30 22:00:53 +00:00
parent 40d3235275
commit a68a460131
3 changed files with 25 additions and 0 deletions

11
bin/watch-changes Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
if [ "$1" ] && [ "$2" ]; then
while true
do
inotifywait --event modify --exclude ".null-ls_*" --recursive $1 2> /dev/null
$2
done
else
echo "usage: watch-changes <file> <command>"
fi