diff --git a/autobuildd b/autobuildd index 549ea0b..35f7d3a 100755 --- a/autobuildd +++ b/autobuildd @@ -314,8 +314,12 @@ function start_build_vm() { # Wait for any VMs using our image to shut down ## We're ready to boot up again when our vm image file is no longer in use + local queued=false until [[ $(lsof "$build_farm_directory/$ARCHDIR/$VM_IMAGE" 2>/dev/null) == "" ]]; do - echo "Queued" + if [[ "$queued" == false ]]; then + echo "Queued" + queued=true + fi sleep 1 done