1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

Update answer.sh

This commit is contained in:
Kroese
2026-07-24 22:43:41 +02:00
committed by GitHub
parent ff391b7a15
commit bb7069204d
-17
View File
@@ -456,23 +456,6 @@ setXML() {
fi
done
# Known Server editions with name-based selectors normally share one
# answer file. When the exact edition is unknown, select its detected index.
# Legacy templates with fixed index selectors retain their known defaults.
if [ -n "$index" ] && [ -z "${EDITION:-}" ] &&
[[ "${DETECTED,,}" == win20* && "${DETECTED,,}" != *-* ]] &&
[ -s "$target" ] &&
grep -Fqi '<Key>/IMAGE/NAME</Key>' "$target"; then
file="/run/assets/$DETECTED-unknown.xml"
removeGeneratedXML "$file" || return 1
generateFallbackXML "$DETECTED-unknown" "$index" || return 1
XML="$file"
return 0
fi
file="$1"
if [[ "${DETECTED,,}" == *"-eval" ]]; then