don't show the grep in build_libvirt.sh

This commit is contained in:
Jesse Andrews 2011-10-31 00:21:56 -07:00
parent 0a247835ac
commit 16341967b1

View file

@ -406,7 +406,7 @@ if [ "$WAIT_TILL_LAUNCH" = "1" ]; then
sleep 1 sleep 1
done done
tail -n +1 -F $VM_DIR/console.log & tail -F $VM_DIR/console.log &
TAIL_PID=$! TAIL_PID=$!
@ -418,11 +418,15 @@ if [ "$WAIT_TILL_LAUNCH" = "1" ]; then
# Let Ctrl-c kill tail and exit # Let Ctrl-c kill tail and exit
trap kill_tail SIGINT trap kill_tail SIGINT
set +o xtrace
echo "Waiting stack.sh to finish..." echo "Waiting stack.sh to finish..."
while ! cat $VM_DIR/console.log | grep -q 'All done' ; do while ! cat $VM_DIR/console.log | grep -q 'All done' ; do
sleep 5 sleep 1
done done
set -o xtrace
kill $TAIL_PID kill $TAIL_PID
if grep -q "stack.sh failed" $VM_DIR/console.log; then if grep -q "stack.sh failed" $VM_DIR/console.log; then