From d8b166665e2f8a01273f431c8860eda449022268 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 10 Jun 2024 14:47:16 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/install.sh b/src/install.sh index c4280b4..240eb61 100644 --- a/src/install.sh +++ b/src/install.sh @@ -973,16 +973,13 @@ bootWindows() { rm -rf "$TMP" if [ -s "$STORAGE/windows.vga" ] && [ -f "$STORAGE/windows.vga" ]; then - VGA=$(<"$STORAGE/windows.vga") + [ -z "${VGA:-}" ] && VGA=$(<"$STORAGE/windows.vga") else - if [[ "${PLATFORM,,}" == "arm64" ]]; then - VGA="virtio-gpu" - echo "$VGA" > "$STORAGE/windows.vga" - fi + [ -z "${VGA:-}" ] && [[ "${PLATFORM,,}" == "arm64" ]] && VGA="virtio-gpu" fi if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then - DISK_TYPE=$(<"$STORAGE/windows.type") + [ -z "${DISK_TYPE:-}" ] && DISK_TYPE=$(<"$STORAGE/windows.type") fi if [ -s "$STORAGE/windows.mode" ] && [ -f "$STORAGE/windows.mode" ]; then