mirror of
https://github.com/dockur/windows.git
synced 2025-12-21 14:41:49 +00:00
Compare commits
2 Commits
e2c323ff43
...
a63ca73ba2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a63ca73ba2 | ||
|
|
70380d8cfc |
@ -127,8 +127,9 @@ startInstall() {
|
|||||||
if [[ "${VERSION,,}" == "http"* ]]; then
|
if [[ "${VERSION,,}" == "http"* ]]; then
|
||||||
|
|
||||||
file=$(basename "${VERSION%%\?*}")
|
file=$(basename "${VERSION%%\?*}")
|
||||||
: "${file//+/ }"; printf -v file '%b' "${_//%/\\x}"
|
file="${file//+/ }"
|
||||||
file=$(echo "$file" | sed -e 's/[^A-Za-z0-9._-]/_/g')
|
printf -v file '%b' "${file//%/\\x}"
|
||||||
|
file="${file//[!A-Za-z0-9._-]/_}"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|||||||
12
src/mido.sh
12
src/mido.sh
@ -171,8 +171,6 @@ download_windows() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
|
|
||||||
|
|
||||||
MIDO_URL="$iso_download_link"
|
MIDO_URL="$iso_download_link"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -309,17 +307,19 @@ download_windows_eval() {
|
|||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
|
|
||||||
|
|
||||||
case "${PLATFORM,,}" in
|
case "${PLATFORM,,}" in
|
||||||
"x64" )
|
"x64" )
|
||||||
if [[ "${iso_download_link,,}" != *"x64"* ]]; then
|
if [[ "${iso_download_link,,}" != *"x64"* ]]; then
|
||||||
error "Download link is for the wrong platform? Please report this at $SUPPORT/issues"
|
echo "Found download link: $iso_download_link"
|
||||||
|
error "Download link is for the wrong platform? Please report this at $SUPPORT/issues"
|
||||||
return 1
|
return 1
|
||||||
fi ;;
|
fi ;;
|
||||||
"arm64" )
|
"arm64" )
|
||||||
if [[ "${iso_download_link,,}" != *"a64"* && "${iso_download_link,,}" != *"arm64"* ]]; then
|
if [[ "${iso_download_link,,}" != *"a64"* && "${iso_download_link,,}" != *"arm64"* ]]; then
|
||||||
[[ "$DEBUG" == [Yy1]* ]] && echo "Link for ARM platform currently not available!"
|
if [[ "$DEBUG" == [Yy1]* ]]; then
|
||||||
|
echo "Found download link: $iso_download_link"
|
||||||
|
echo "Link for ARM platform currently not available!"
|
||||||
|
fi
|
||||||
return 1
|
return 1
|
||||||
fi ;;
|
fi ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user