From 40d15c8b56902fb1faab198c7ce234effe3f4f21 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 26 May 2024 20:33:49 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/install.sh b/src/install.sh index 400780e..2c73c88 100644 --- a/src/install.sh +++ b/src/install.sh @@ -495,8 +495,7 @@ detectLegacy() { if [ -n "$find" ] || [ -n "$find2" ]; then [ -d "$dir/AMD64" ] && DETECTED="winxpx64" || DETECTED="winxpx86" desc=$(printEdition "$DETECTED" "Windows XP") - info "Detected: $desc" - return 0 + info "Detected: $desc" && return 0 fi find=$(find "$dir" -maxdepth 1 -type d -iname win95 | head -n 1) @@ -504,8 +503,7 @@ detectLegacy() { if [ -n "$find" ]; then DETECTED="win95" desc=$(printEdition "$DETECTED" "Windows 95") - info "Detected: $desc" - return 0 + info "Detected: $desc" && return 0 fi find=$(find "$dir" -maxdepth 1 -type d -iname win98 | head -n 1) @@ -513,9 +511,17 @@ detectLegacy() { if [ -n "$find" ]; then DETECTED="win98" desc=$(printEdition "$DETECTED" "Windows 98") - info "Detected: $desc" - return 0 + info "Detected: $desc" && return 0 fi + + find=$(find "$dir" -maxdepth 1 -type d -iname win9x | head -n 1) + + if [ -n "$find" ]; then + DETECTED="win9x" + desc=$(printEdition "$DETECTED" "Windows ME") + info "Detected: $desc" && return 0 + fi + return 1 }