mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 19:55:49 +00:00
Update install.sh
This commit is contained in:
parent
e930211622
commit
cbaec17250
1 changed files with 13 additions and 8 deletions
|
|
@ -345,21 +345,26 @@ downloadImage() {
|
||||||
desc=$(printVersion "$version" "Windows for ${PLATFORM}")
|
desc=$(printVersion "$version" "Windows for ${PLATFORM}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if isMido "$version"; then
|
if [[ "${PLATFORM,,}" == "x64" ]]; then
|
||||||
tried="y"
|
if isMido "$version"; then
|
||||||
doMido "$iso" "$version" "$desc" && return 0
|
tried="y"
|
||||||
|
doMido "$iso" "$version" "$desc" && return 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if isESD "$version"; then
|
if isESD "$version"; then
|
||||||
|
|
||||||
[[ "$tried" != "n" ]] && info "Failed to download $desc using Mido, will try a different method now..."
|
if [[ "${PLATFORM,,}" == "x64" ]]; then
|
||||||
|
|
||||||
ISO="$TMP/$version.esd"
|
[[ "$tried" != "n" ]] && info "Failed to download $desc using Mido, will try a different method now..."
|
||||||
iso="$ISO"
|
|
||||||
|
ISO="$TMP/$version.esd"
|
||||||
|
iso="$ISO"
|
||||||
|
rm -rf "$TMP"
|
||||||
|
mkdir -p "$TMP"
|
||||||
|
fi
|
||||||
|
|
||||||
tried="y"
|
tried="y"
|
||||||
rm -rf "$TMP"
|
|
||||||
mkdir -p "$TMP"
|
|
||||||
|
|
||||||
if getESD "$TMP/esd" "$version"; then
|
if getESD "$TMP/esd" "$version"; then
|
||||||
downloadFile "$iso" "$ESD_URL" "$desc" && return 0
|
downloadFile "$iso" "$ESD_URL" "$desc" && return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue