Use watch to keepalive stdout while installing.

This commit is contained in:
Jordan Harband
2016-05-26 08:48:15 +02:00
parent 4060de5285
commit 88ce2103f5
2 changed files with 15 additions and 1 deletions

View File

@@ -63,3 +63,15 @@ make_fake_iojs() {
return 3
}
}
watch() {
$@ &
local JOB
JOB=$!
while true; do sleep 15; echo '* ping *'; done &
wait $JOB;
local EXIT_CODE
EXIT_CODE=$?
kill %2;
return $EXIT_CODE
}