mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 12:04:24 +01:00
revised check_riivolution_patch (should now work in all cases)
This commit is contained in:
parent
898b801026
commit
ea235c233f
@ -139,7 +139,10 @@ check_input_image () {
|
|||||||
|
|
||||||
check_riivolution_patch () {
|
check_riivolution_patch () {
|
||||||
|
|
||||||
if [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} == "TRUE" ]]; then
|
if [[ ! -d ${RIIVOLUTION_DIR} ]]; then
|
||||||
|
if [[ -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" ]]; then
|
||||||
|
tools/unp "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" >/dev/null
|
||||||
|
elif [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} == "TRUE" ]]; then
|
||||||
if [[ ${DOWNLOAD_LINK} ]]; then
|
if [[ ${DOWNLOAD_LINK} ]]; then
|
||||||
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" ]]; then
|
if [[ ! -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" ]]; then
|
||||||
wget --no-check-certificate ${DOWNLOAD_LINK} -O "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}"
|
wget --no-check-certificate ${DOWNLOAD_LINK} -O "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}"
|
||||||
@ -149,12 +152,11 @@ check_riivolution_patch () {
|
|||||||
echo "no download link for ${GAMENAME} available."
|
echo "no download link for ${GAMENAME} available."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif [[ -f "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" && ! -d "${RIIVOLUTION_DIR}" ]]; then
|
else
|
||||||
tools/unp "${PATCHIMAGE_RIIVOLUTION_DIR}"/"${RIIVOLUTION_ZIP}" >/dev/null
|
|
||||||
elif [[ ! -d "${RIIVOLUTION_DIR}" ]]; then
|
|
||||||
echo -e "please specify zip/rar to use with --riivolution=<path>"
|
echo -e "please specify zip/rar to use with --riivolution=<path>"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user