Update gfxcreate.sh
This commit is contained in:
@@ -20,8 +20,10 @@ if $remove; then
|
|||||||
do
|
do
|
||||||
ip=$(echo $line | cut -d ';' -f 1)
|
ip=$(echo $line | cut -d ';' -f 1)
|
||||||
vmid=$(echo $ip | cut -d '.' -f 3,4 | sed 's/\.// ')
|
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
|
do
|
||||||
|
echo "$status"
|
||||||
echo "Waiting for VM $vmid become stopped..."
|
echo "Waiting for VM $vmid become stopped..."
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user