From 3bf41d917220905d7b14c4f3a4a56d94d975281c Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 24 Jan 2024 02:32:43 +0100 Subject: [PATCH] Update power.sh --- src/power.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/power.sh b/src/power.sh index 9ae06cf..f1b2707 100644 --- a/src/power.sh +++ b/src/power.sh @@ -121,8 +121,10 @@ _graceful_shutdown() { info "Cannot send ACPI signal during Windows setup, aborting..." finish "$code" && return "$code" else - [ -n "$BASE" ] && rm -f "$STORAGE/$BASE" - touch "$STORAGE/windows.boot" + if [ -f "$STORAGE/$BASE" ]; then + rm -f "$STORAGE/$BASE" + touch "$STORAGE/windows.boot" + fi fi fi