Replace watch-changes script with watchexec
This commit is contained in:
parent
2f2ded8d20
commit
529d1a7ce7
|
@ -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
|
|
|
@ -32,6 +32,7 @@ with pkgs; [
|
||||||
tree-sitter
|
tree-sitter
|
||||||
unzip
|
unzip
|
||||||
virtualenv
|
virtualenv
|
||||||
|
watchexec
|
||||||
wget
|
wget
|
||||||
xcp
|
xcp
|
||||||
xh
|
xh
|
||||||
|
|
Loading…
Reference in a new issue