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 else
DETECTED="win10x64-ltsc" DETECTED="win10x64-ltsc"
fi fi
if [[ "$MANUAL" != [Yy1]* ]]; then [[ "$MANUAL" == [Yy1]* ]] && return 0
if [ -f "/run/assets/$DETECTED.xml" ]; then if [ -f "/run/assets/$DETECTED.xml" ]; then
XML="$DETECTED.xml" XML="$DETECTED.xml"
else return 0
warn "image type is '$DETECTED', but no matching XML file exists, $FB." else
fi warn "image type is '$DETECTED', but no matching XML file exists!"
fi fi
return 0
fi fi
info "Detecting Windows version from ISO image..." info "Detecting Windows version from ISO image..."