Update install.sh

This commit is contained in:
Kroese 2024-01-26 17:16:22 +01:00 committed by GitHub
parent ffc5de82da
commit 72acddfc45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -365,14 +365,13 @@ detectImage() {
else
DETECTED="win10x64-ltsc"
fi
if [[ "$MANUAL" != [Yy1]* ]]; then
[[ "$MANUAL" == [Yy1]* ]] && return 0
if [ -f "/run/assets/$DETECTED.xml" ]; then
XML="$DETECTED.xml"
else
warn "image type is '$DETECTED', but no matching XML file exists, $FB."
fi
fi
return 0
else
warn "image type is '$DETECTED', but no matching XML file exists!"
fi
fi
info "Detecting Windows version from ISO image..."