proper mega.nz downloader function

This commit is contained in:
Christopher Roy Bratusek 2016-08-27 11:02:45 +02:00
parent bc9387258e
commit a97a82dde8

View File

@ -51,6 +51,19 @@ download_riivolution_patch () {
unpack "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
;;
*mega.nz* )
x=5
echo "*** >> downloading"
${MEGADL} \
--path="${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \
"${DOWNLOAD_LINK}" >/dev/null || \
( echo -e "\nDownload failed!" && exit 57 )
mv "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"__tmp \
"${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
echo "*** >> unpacking"
unpack "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}"
;;
*romhacking* )
x=6
echo "can not download from Romhacking, download manually from: