Update power.sh

This commit is contained in:
Kroese 2024-01-25 15:39:47 +01:00 committed by GitHub
parent 440be5bd0c
commit 6eb808f217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,7 @@ _graceful_shutdown() {
local remove_iso=""
if [ ! -f "$STORAGE/windows.bios" ]; then
if [ ! -f "$STORAGE/windows.old" ]; then
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then
if grep -Fq "Windows Boot Manager" "$QEMU_PTY"; then
[ -f "$STORAGE/$BASE" ] && remove_iso="y"