From 92e53d4e25d22fb17415f29377519e7916bd89b4 Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Sat, 1 Nov 2025 12:29:45 +0000 Subject: [PATCH] Update gfxcreate.sh --- gfxcreate.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfxcreate.sh b/gfxcreate.sh index 0d58434..a5de29d 100644 --- a/gfxcreate.sh +++ b/gfxcreate.sh @@ -20,8 +20,10 @@ if $remove; then do ip=$(echo $line | cut -d ';' -f 1) vmid=$(echo $ip | cut -d '.' -f 3,4 | sed 's/\.// ') - until [[ $(qm status $vmid | cut -d ' ' -f 2) -ne "stopped" ]] + status=$(qm status $vmid | cut -d ' ' -f 2) + until [[ $status -ne "stopped" ]] do + echo "$status" echo "Waiting for VM $vmid become stopped..." sleep 1 done