Update disk-passthrough.sh

This commit is contained in:
MacRimi
2025-02-03 23:56:54 +01:00
committed by GitHub
parent e377a04d0e
commit 854d925626

View File

@@ -85,6 +85,12 @@ if [ -z "$VM_LIST" ]; then
exit 1
fi
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then
kill $SPINNER_PID > /dev/null
wait $SPINNER_PID 2>/dev/null
unset SPINNER_PID
fi
# Select VM
VMID=$(whiptail --title "$(translate "Select VM")" --menu "$(translate "Select the VM to which you want to add disks:")" 15 60 8 $VM_LIST 3>&1 1>&2 2>&3)