mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 03:54:22 +01:00
- use gdown.pl for drive.google.* download links
- for download links on Mega tell user where to download manually - for download links on Mediafire tell user where to download manually
This commit is contained in:
parent
2324d2b90c
commit
adf88bb46e
@ -12,6 +12,9 @@ v7.0.0:
|
|||||||
writeable, else fallback to ${HOME}
|
writeable, else fallback to ${HOME}
|
||||||
- fix telling user path to Hans Files for all Pokemon game hacks
|
- fix telling user path to Hans Files for all Pokemon game hacks
|
||||||
- make the script more robust against directories with spaces in their names
|
- make the script more robust against directories with spaces in their names
|
||||||
|
- use gdown.pl for drive.google.* download links
|
||||||
|
- for download links on Mega tell user where to download manually
|
||||||
|
- for download links on Mediafire tell user where to download manually
|
||||||
|
|
||||||
::configuration file changes
|
::configuration file changes
|
||||||
- new configuration variable PATCHIMAGE_3DS_DIR, global directory
|
- new configuration variable PATCHIMAGE_3DS_DIR, global directory
|
||||||
|
@ -413,7 +413,7 @@ check_riivolution_patch () {
|
|||||||
${UNP} "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${UNP_EXTRA_ARGS}" >/dev/null || exit 63
|
${UNP} "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${UNP_EXTRA_ARGS}" >/dev/null || exit 63
|
||||||
elif [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} == "TRUE" ]]; then
|
elif [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} == "TRUE" ]]; then
|
||||||
x=4
|
x=4
|
||||||
if [[ ${DOWNLOAD_LINK} == *docs.google* ]]; then
|
if [[ ${DOWNLOAD_LINK} == *docs.google* || ${DOWNLOAD_LINK} == *drive.google* ]]; then
|
||||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
|
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
|
||||||
x=5
|
x=5
|
||||||
echo "*** >> downloading"
|
echo "*** >> downloading"
|
||||||
@ -422,6 +422,18 @@ check_riivolution_patch () {
|
|||||||
echo "*** >> unpacking"
|
echo "*** >> unpacking"
|
||||||
${UNP} "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${UNP_EXTRA_ARGS}" >/dev/null || exit 63
|
${UNP} "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" "${UNP_EXTRA_ARGS}" >/dev/null || exit 63
|
||||||
fi
|
fi
|
||||||
|
elif [[ ${DOWNLOAD_LINK} == *mega.nz* ]]; then
|
||||||
|
echo "can not download from Mega, download manually from:
|
||||||
|
|
||||||
|
${DOWNLOAD_LINK}
|
||||||
|
"
|
||||||
|
exit 21
|
||||||
|
elif [[ ${DOWNLOAD_LINK} == *mediafire* ]]; then
|
||||||
|
echo "can not download from Mediafire, download manually from:
|
||||||
|
|
||||||
|
${DOWNLOAD_LINK}
|
||||||
|
"
|
||||||
|
exit 21
|
||||||
elif [[ ${DOWNLOAD_LINK} ]]; then
|
elif [[ ${DOWNLOAD_LINK} ]]; then
|
||||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
|
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}/${RIIVOLUTION_ZIP}" ]]; then
|
||||||
x=5
|
x=5
|
||||||
|
Loading…
Reference in New Issue
Block a user