Update install.sh

This commit is contained in:
Kroese 2024-05-26 19:53:30 +02:00 committed by GitHub
parent 7f18f40690
commit 81ed8665a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -488,7 +488,7 @@ detectImage() {
local dir="$1"
local version="$2"
local desc msg language
local desc msg find language
XML=""
@ -515,14 +515,18 @@ detectImage() {
info "Detecting version from ISO image..."
if [ -d "$dir/WIN98" ]; then
find=$(find "$dir" -maxdepth 1 -type d -iname win98 | head -n 1)
if [ -n "$find" ]; then
DETECTED="win98"
desc=$(printEdition "$DETECTED" "Windows 98")
info "Detected: $desc"
return 0
fi
if [ -f "$dir/WIN51" ] || [ -f "$dir/SETUPXP.HTM" ]; then
find=$(find "$dir" -maxdepth 1 -type d -iname win51 | head -n 1)
if [ -n "$find" ] || [ -f "$dir/SETUPXP.HTM" ]; then
[ -d "$dir/AMD64" ] && DETECTED="winxpx64" || DETECTED="winxpx86"
desc=$(printEdition "$DETECTED" "Windows XP")
info "Detected: $desc"