diff --git a/src/power.sh b/src/power.sh index e7f9b97..88c41cb 100644 --- a/src/power.sh +++ b/src/power.sh @@ -118,14 +118,12 @@ _graceful_shutdown() { local remove_iso="" - 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" - else - info "Cannot send ACPI signal during Windows setup, aborting..." - finish "$code" && return "$code" - fi + if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then + if grep -Fq "Windows Boot Manager" "$QEMU_PTY"; then + [ -f "$STORAGE/$BASE" ] && remove_iso="y" + else + info "Cannot send ACPI signal during Windows setup, aborting..." + finish "$code" && return "$code" fi fi