runs build upon file change, repeats on failure

#!/usr/bin/env rc

flag e +

cmd = ( $* )

watch = ( inotifywait -q --recursive -e modify -e moved_to -e create -t 3 .
)

while (true)
    if ($watch)
        while (!$cmd)
            $watch || true

Reply via email to