#! /usr/bin/env sh LAST_DIR="$PWD" cd "$(dirname "$0")/../.." || exit 1 (out/this/release/wtr.watcher . -s 3) & (tool/test/file) & sleep 5 if pgrep wtr.watcher; then killall wtr.watcher; fi kill $(pgrep bash) ls -al out/this/release/wtr.watcher cd "$LAST_DIR" || exit 1