mirror of
https://github.com/winapps-org/winapps.git
synced 2025-09-18 23:39:31 +02:00
Further fixes for #638
Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
This commit is contained in:
6
setup.sh
6
setup.sh
@@ -840,11 +840,11 @@ function waCheckVMRunning() {
|
||||
|
||||
# Obtain VM Status
|
||||
VM_PAUSED=0
|
||||
virsh list --state-paused --name | grep -Fxq "$VM_NAME" || VM_PAUSED="$?"
|
||||
virsh list --state-paused --name | grep -Fxq -- "$VM_NAME" || VM_PAUSED="$?"
|
||||
VM_RUNNING=0
|
||||
virsh list --state-running --name | grep -Fxq "$VM_NAME" || VM_RUNNING="$?"
|
||||
virsh list --state-running --name | grep -Fxq -- "$VM_NAME" || VM_RUNNING="$?"
|
||||
VM_SHUTOFF=0
|
||||
virsh list --state-shutoff --name | grep -Fxq "$VM_NAME" || VM_SHUTOFF="$?"
|
||||
virsh list --state-shutoff --name | grep -Fxq -- "$VM_NAME" || VM_SHUTOFF="$?"
|
||||
|
||||
if [[ $VM_SHUTOFF == "0" ]]; then
|
||||
# Complete the previous line.
|
||||
|
Reference in New Issue
Block a user