mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-12-29 02:21:51 +01:00
use unrar x, in favour of e, check if a download link exists, before trying to do
This commit is contained in:
parent
ac083990be
commit
1780398e7c
@ -47,8 +47,9 @@ C AnotherSMB
|
||||
D Newer: Holiday Special
|
||||
E Cannon Super Mario Bros.
|
||||
F Epic Super Bowser World
|
||||
G Koopa Country
|
||||
|
||||
G The Legend of Zelda: Parallel Worlds
|
||||
1 The Legend of Zelda: Parallel Worlds
|
||||
"
|
||||
|
||||
read GAME
|
||||
@ -112,11 +113,14 @@ check_input_image () {
|
||||
check_riivolution_patch () {
|
||||
|
||||
if [[ ${DOWNLOAD} ]]; then
|
||||
if [[ ! -f ${RIIVOLUTION_ZIP} ]]; then
|
||||
wget ${DOWNLOAD_LINK} -O ${RIIVOLUTION_ZIP}
|
||||
fi
|
||||
if [[ ! -d "${RIIVOLUTION_DIR}" ]]; then
|
||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
||||
if [[ ${DOWNLOAD_LINK} ]]; then
|
||||
if [[ ! -f ${RIIVOLUTION_ZIP} ]]; then
|
||||
wget ${DOWNLOAD_LINK} -O ${RIIVOLUTION_ZIP}
|
||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
||||
fi
|
||||
else
|
||||
echo "no download link for ${GAMENAME} available."
|
||||
exit 1
|
||||
fi
|
||||
elif [[ -f ${RIIVOLUTION_ZIP} && ! -d "${RIIVOLUTION_DIR}" ]]; then
|
||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
||||
@ -181,7 +185,7 @@ while [[ $xcount -lt $pcount ]]; do
|
||||
if [[ "${PATCH}" == *.zip ]]; then
|
||||
unzip "${PATCH}" >/dev/null
|
||||
elif [[ "${PATCH}" == *.rar ]]; then
|
||||
unrar e "${PATCH}" >/dev/null
|
||||
unrar x "${PATCH}" >/dev/null
|
||||
fi
|
||||
else
|
||||
echo -e "PATCH patch ${PATCH} not found."
|
||||
|
Loading…
Reference in New Issue
Block a user