| ... | ... |
@@ -406,7 +406,7 @@ if [ "$WAIT_TILL_LAUNCH" = "1" ]; then |
| 406 | 406 |
sleep 1 |
| 407 | 407 |
done |
| 408 | 408 |
|
| 409 |
- tail -n +1 -F $VM_DIR/console.log & |
|
| 409 |
+ tail -F $VM_DIR/console.log & |
|
| 410 | 410 |
|
| 411 | 411 |
TAIL_PID=$! |
| 412 | 412 |
|
| ... | ... |
@@ -418,11 +418,15 @@ if [ "$WAIT_TILL_LAUNCH" = "1" ]; then |
| 418 | 418 |
# Let Ctrl-c kill tail and exit |
| 419 | 419 |
trap kill_tail SIGINT |
| 420 | 420 |
|
| 421 |
+ set +o xtrace |
|
| 422 |
+ |
|
| 421 | 423 |
echo "Waiting stack.sh to finish..." |
| 422 | 424 |
while ! cat $VM_DIR/console.log | grep -q 'All done' ; do |
| 423 |
- sleep 5 |
|
| 425 |
+ sleep 1 |
|
| 424 | 426 |
done |
| 425 | 427 |
|
| 428 |
+ set -o xtrace |
|
| 429 |
+ |
|
| 426 | 430 |
kill $TAIL_PID |
| 427 | 431 |
|
| 428 | 432 |
if grep -q "stack.sh failed" $VM_DIR/console.log; then |