From 7a72e2f546806351a4dc4a420e3772690678a428 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 5 May 2024 21:00:49 +0200 Subject: [PATCH] Update power.sh --- src/power.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/power.sh b/src/power.sh index 0ece9bc..cb23f6f 100644 --- a/src/power.sh +++ b/src/power.sh @@ -83,9 +83,9 @@ finish() { if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$BOOT" ]; then # Remove CD-ROM ISO after install - if ready && [[ "$REMOVE" != [Nn]* ]]; then - rm -f "$BOOT" 2>/dev/null || true + if ready; then touch "$STORAGE/windows.boot" + [[ "$REMOVE" != [Nn]* ]] && rm -f "$BOOT" 2>/dev/null || true fi fi