diff --git a/scripts/exec-watch b/scripts/exec-watch index 0e72bd1..df1e46c 100755 --- a/scripts/exec-watch +++ b/scripts/exec-watch @@ -15,6 +15,10 @@ if ! command -v inotifywait >/dev/null; then 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 done