From 471a110b3f657b2fd830cdb09698dd369695aaef Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 5 Feb 2024 21:56:28 +0100 Subject: [PATCH] Update power.sh --- src/power.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/power.sh b/src/power.sh index 51a2007..b615501 100644 --- a/src/power.sh +++ b/src/power.sh @@ -41,8 +41,8 @@ finish() { done fi - if [ ! -f "$STORAGE/windows.old" ]; then - if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then + if [ ! -f "$STORAGE/windows.old" ] && [ ! -f "$STORAGE/windows.boot" ]; then + if [ -f "$QEMU_PTY" ]; then if grep -Fq "$BOOT_LINE" "$QEMU_PTY"; then rm -f "$STORAGE/$BASE" touch "$STORAGE/windows.boot" @@ -126,8 +126,8 @@ _graceful_shutdown() { finish "$code" && return "$code" fi - if [ ! -f "$STORAGE/windows.old" ]; then - if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then + if [ ! -f "$STORAGE/windows.old" ] && [ ! -f "$STORAGE/windows.boot" ]; then + if [ -f "$QEMU_PTY" ]; then if ! grep -Fq "$BOOT_LINE" "$QEMU_PTY"; then info "Cannot send ACPI signal during Windows setup, aborting..." finish "$code" && return "$code"