Compare commits

..

No commits in common. "a63ca73ba2305d4c7f638216351c406e7ec7ef81" and "e2c323ff4375d6fd97b9575fb192fb0933561f9f" have entirely different histories.

2 changed files with 8 additions and 9 deletions

View File

@ -127,9 +127,8 @@ startInstall() {
if [[ "${VERSION,,}" == "http"* ]]; then if [[ "${VERSION,,}" == "http"* ]]; then
file=$(basename "${VERSION%%\?*}") file=$(basename "${VERSION%%\?*}")
file="${file//+/ }" : "${file//+/ }"; printf -v file '%b' "${_//%/\\x}"
printf -v file '%b' "${file//%/\\x}" file=$(echo "$file" | sed -e 's/[^A-Za-z0-9._-]/_/g')
file="${file//[!A-Za-z0-9._-]/_}"
else else

View File

@ -171,6 +171,8 @@ 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
} }
@ -307,19 +309,17 @@ 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
echo "Found download link: $iso_download_link"
error "Download link is for the wrong platform? Please report this at $SUPPORT/issues" 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
if [[ "$DEBUG" == [Yy1]* ]]; then [[ "$DEBUG" == [Yy1]* ]] && echo "Link for ARM platform currently not available!"
echo "Found download link: $iso_download_link"
echo "Link for ARM platform currently not available!"
fi
return 1 return 1
fi ;; fi ;;
esac esac