diff --git a/gfxcreate.sh b/gfxcreate.sh index a5de29d..d39ed9b 100644 --- a/gfxcreate.sh +++ b/gfxcreate.sh @@ -21,7 +21,7 @@ if $remove; then ip=$(echo $line | cut -d ';' -f 1) vmid=$(echo $ip | cut -d '.' -f 3,4 | sed 's/\.// ') status=$(qm status $vmid | cut -d ' ' -f 2) - until [[ $status -ne "stopped" ]] + until [[ $status -eq "stopped" ]] do echo "$status" echo "Waiting for VM $vmid become stopped..."