Merge pull request #4 from alberic89/downloader-help

Show two links if the download of riivolution patch failed
This commit is contained in:
Chris 'Nano' Bratusek 2023-08-19 19:18:41 +02:00 committed by GitHub
commit f50f4813d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ download_riivolution_patch () {
${GDOWN} "${DOWNLOAD_LINK}" \ ${GDOWN} "${DOWNLOAD_LINK}" \
"${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp >/dev/null || \ "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp >/dev/null || \
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp && \ ( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp && \
echo -e "\nDownload failed!" && exit 57 ) download_riivolution_failed && exit 57 )
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \ mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \
"${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
echo "*** >> unpacking" echo "*** >> unpacking"
@ -61,7 +61,7 @@ download_riivolution_patch () {
--path="${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \ --path="${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \
"${DOWNLOAD_LINK}" >/dev/null || \ "${DOWNLOAD_LINK}" >/dev/null || \
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp && \ ( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp && \
echo -e "\nDownload failed!" && exit 57 ) download_riivolution_failed && exit 57 )
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \ mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \
"${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
echo "*** >> unpacking" echo "*** >> unpacking"
@ -80,6 +80,7 @@ download_riivolution_patch () {
"" ) "" )
echo "no download link for ${GAMENAME} available." echo "no download link for ${GAMENAME} available."
download_riivolution_failed
exit 21 exit 21
;; ;;
@ -89,7 +90,7 @@ download_riivolution_patch () {
wget -nv --no-check-certificate "${DOWNLOAD_LINK}" \ wget -nv --no-check-certificate "${DOWNLOAD_LINK}" \
-O "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp || \ -O "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp || \
( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp && \ ( rm "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp && \
echo -e "\nDownload failed!" && exit 57 ) download_riivolution_failed && exit 57 )
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \ mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \
"${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
echo "*** >> unpacking" echo "*** >> unpacking"
@ -122,3 +123,11 @@ download_covers () {
done done
} }
download_riivolution_failed () {
echo -e "\nDownload failed!
You can try to download manualy from :
https://goaibox.com/sl/3suwkMVFZj
https://archive.org/download/new-super-mario-bros-wii-mod-archive/"
}