Use watch to keepalive stdout while installing.

This commit is contained in:
Jordan Harband
2016-09-02 23:43:46 -07:00
parent 4060de5285
commit 88ce2103f5
2 changed files with 15 additions and 1 deletions
+12
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
}