mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 03:45:48 +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}")
|
||||
fi
|
||||
|
||||
if isMido "$version"; then
|
||||
tried="y"
|
||||
doMido "$iso" "$version" "$desc" && return 0
|
||||
if [[ "${PLATFORM,,}" == "x64" ]]; then
|
||||
if isMido "$version"; then
|
||||
tried="y"
|
||||
doMido "$iso" "$version" "$desc" && return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
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"
|
||||
iso="$ISO"
|
||||
[[ "$tried" != "n" ]] && info "Failed to download $desc using Mido, will try a different method now..."
|
||||
|
||||
ISO="$TMP/$version.esd"
|
||||
iso="$ISO"
|
||||
rm -rf "$TMP"
|
||||
mkdir -p "$TMP"
|
||||
fi
|
||||
|
||||
tried="y"
|
||||
rm -rf "$TMP"
|
||||
mkdir -p "$TMP"
|
||||
|
||||
if getESD "$TMP/esd" "$version"; then
|
||||
downloadFile "$iso" "$ESD_URL" "$desc" && return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue