Update install.sh

This commit is contained in:
Kroese 2024-02-01 13:15:46 +01:00 committed by GitHub
parent 64d38f39ab
commit 0f3fea48f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -662,7 +662,7 @@ prepareXP() {
return 0
}
prepareWin7() {
prepareLegacy() {
local iso="$1"
local dir="$2"
@ -705,14 +705,14 @@ prepareImage() {
fi
fi
if [[ "${DETECTED,,}" == "winxpx86"* ]]; then
if [[ "${DETECTED,,}" == "winxp"* ]]; then
if ! prepareXP "$iso" "$dir"; then
error "Failed to prepare Windows XP ISO!"
return 1
fi
else
if ! prepareWin7 "$iso" "$dir"; then
error "Failed to prepare Windows 7 ISO!"
if ! prepareLegacy "$iso" "$dir"; then
error "Failed to prepare Windows ISO!"
return 1
fi
fi