This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
APP=$1 | |
PID="nope" | |
inotifywait -q -m -e create _esy/default | | |
while read -r filename event; do | |
if [[ "$event" == "CREATE build" ]]; then | |
if [[ "$(ps -ao '%p' | grep ${PID})" != "" ]]; then | |
kill -9 ${PID} | |
fi |