Compare commits

..
4 Commits
Author SHA1 Message Date
romanzy313 467450029d optimize concurrent changes 2026-11-30 17:39:10 +01:00
romanzy313 64888f9b6a clear screen 2026-11-30 17:18:04 +01:00
romanzy313 5e6a665265 simplify 2026-11-30 17:16:37 +01:00
romanzy313 a430080725 exec-watch 2026-11-30 17:12:57 +01:00
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
set -euo pipefail
script_name=$(basename "$0")
if [ "$#" -eq 0 ]; then
echo "Usage: $script_name command [args ...]" >&2
exit 2
fi
if ! command -v inotifywait >/dev/null; then
echo "$script_name: inotifywait was not found. Install inotify-tools." >&2
exit 127
fi
while true; do
if [ -t 1 ]; then
clear 2>/dev/null || true
fi
( "$@" ) || echo "$script_name: command exited with status $?" >&2
inotifywait --quiet --recursive --event close_write,move,create,delete . >/dev/null
sleep 0.2
done