From 69a920d3628831bb1815446eb6fe469faa9e9bcd Mon Sep 17 00:00:00 2001 From: neil Date: Wed, 6 Dec 2023 20:50:27 +0100 Subject: [PATCH] minor --- build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index a2ec101..ce3a6c4 100644 --- a/build.sh +++ b/build.sh @@ -88,6 +88,10 @@ while $vmsh isRunning $osname; do done +sleep 5 + + + $vmsh startVM $osname sleep 2 @@ -198,11 +202,15 @@ EOF ssh $osname "$VM_SHUTDOWN_CMD" -sleep 5 +sleep 30 ############################################################### -$vmsh shutdownVM $osname +if $vmsh isRunning $osname; then + if ! $vmsh shutdownVM $osname; then + echo "shutdown error" + fi +fi while $vmsh isRunning $osname; do sleep 5