mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Update mido.sh
This commit is contained in:
parent
8962557024
commit
f062915ed2
1 changed files with 2 additions and 13 deletions
15
src/mido.sh
15
src/mido.sh
|
|
@ -259,7 +259,7 @@ scurl_file() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Full downloaded succeeded, ready for verification check
|
# Full downloaded succeeded, ready for verification check
|
||||||
mv "$part_file" "${out_file}${unverified_ext}"
|
mv "$part_file" "${out_file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
manual_verification() {
|
manual_verification() {
|
||||||
|
|
@ -678,17 +678,6 @@ ending_summary() {
|
||||||
echo_err "$(word_count $media_download_failed_list) attempted download(s) failed! Please re-run Mido with these arguments to try downloading again (any partial downloads will be resumed):$media_download_failed_argument_list"
|
echo_err "$(word_count $media_download_failed_list) attempted download(s) failed! Please re-run Mido with these arguments to try downloading again (any partial downloads will be resumed):$media_download_failed_argument_list"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
media_verification_failed_list=""
|
|
||||||
checksum_verification_failed_list=""
|
|
||||||
|
|
||||||
if [ "$media_verification_failed_list" ]; then
|
|
||||||
manual_verification "$media_verification_failed_list" "$checksum_verification_failed_list"
|
|
||||||
# shellcheck disable=SC2086
|
|
||||||
echo_err "$(word_count $media_verification_failed_list) of the downloaded Windows media did NOT match the expected checksum! This means either that the media is a newer release than our current checksum (stored in Mido), was corrupted during download, or that is has been (potentially maliciously) modified! Please manually verify the Windows media before use:$media_verification_failed_list"
|
|
||||||
elif [ "$manual_verification" = "true" ]; then
|
|
||||||
manual_verification
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Exit codes
|
# Exit codes
|
||||||
# 0: Success
|
# 0: Success
|
||||||
# 1: Argument parsing error
|
# 1: Argument parsing error
|
||||||
|
|
@ -782,5 +771,5 @@ done
|
||||||
trap handle_exit EXIT
|
trap handle_exit EXIT
|
||||||
|
|
||||||
download_media
|
download_media
|
||||||
#verify_media
|
verify_media
|
||||||
ending_summary
|
ending_summary
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue