From 0f3fea48f77684c40ea972561e9c7e9a32af5742 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 1 Feb 2024 13:15:46 +0100 Subject: [PATCH] Update install.sh --- src/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index 5dcde43..b38ecb7 100644 --- a/src/install.sh +++ b/src/install.sh @@ -662,7 +662,7 @@ prepareXP() { return 0 } -prepareWin7() { +prepareLegacy() { local iso="$1" local dir="$2" @@ -705,14 +705,14 @@ prepareImage() { fi fi - if [[ "${DETECTED,,}" == "winxpx86"* ]]; then + if [[ "${DETECTED,,}" == "winxp"* ]]; then if ! prepareXP "$iso" "$dir"; then error "Failed to prepare Windows XP ISO!" return 1 fi else - if ! prepareWin7 "$iso" "$dir"; then - error "Failed to prepare Windows 7 ISO!" + if ! prepareLegacy "$iso" "$dir"; then + error "Failed to prepare Windows ISO!" return 1 fi fi