Replace watch-changes script with watchexec

This commit is contained in:
Oliver Davies 2024-02-14 17:44:52 +00:00
parent 2f2ded8d20
commit 529d1a7ce7
2 changed files with 1 additions and 17 deletions

View file

@ -1,17 +0,0 @@
#!/usr/bin/env bash
if [[ "$1" == "" || "$2" == "" ]]; then
echo "usage: ${0##*/} <file> <command>";
exit 2;
fi
set -uo pipefail
while true; do
inotifywait \
--event modify \
--event move_self \
--exclude ".git|simpletest|vendor" \
--recursive \
$1 && $2
done

View file

@ -32,6 +32,7 @@ with pkgs; [
tree-sitter
unzip
virtualenv
watchexec
wget
xcp
xh