mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-12-29 10:31:49 +01:00
fix handling riivolution zips with spaces in name
This commit is contained in:
parent
bd680b3164
commit
10f41e0e2c
@ -107,20 +107,20 @@ check_riivolution_patch () {
|
|||||||
|
|
||||||
if [[ ${DOWNLOAD} ]]; then
|
if [[ ${DOWNLOAD} ]]; then
|
||||||
if [[ ${DOWNLOAD_LINK} ]]; then
|
if [[ ${DOWNLOAD_LINK} ]]; then
|
||||||
if [[ ! -f ${RIIVOLUTION_ZIP} ]]; then
|
if [[ ! -f "${RIIVOLUTION_ZIP}" ]]; then
|
||||||
wget ${DOWNLOAD_LINK} -O ${RIIVOLUTION_ZIP}
|
wget ${DOWNLOAD_LINK} -O "${RIIVOLUTION_ZIP}"
|
||||||
if [[ ${RIIVOLUTION_ZIP} == *.zip ]]; then
|
if [[ "${RIIVOLUTION_ZIP}" == *.zip ]]; then
|
||||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
unzip "${RIIVOLUTION_ZIP}" >/dev/null
|
||||||
elif [[ ${RIIVOLUTION_ZIP} == *.rar ]]; then
|
elif [[ "${RIIVOLUTION_ZIP}" == *.rar ]]; then
|
||||||
unrar x ${RIIVOLUTION_ZIP} >/dev/null
|
unrar x "${RIIVOLUTION_ZIP}" >/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "no download link for ${GAMENAME} available."
|
echo "no download link for ${GAMENAME} available."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
elif [[ -f ${RIIVOLUTION_ZIP} && ! -d "${RIIVOLUTION_DIR}" ]]; then
|
elif [[ -f "${RIIVOLUTION_ZIP}" && ! -d "${RIIVOLUTION_DIR}" ]]; then
|
||||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
unzip "${RIIVOLUTION_ZIP}" >/dev/null
|
||||||
elif [[ ! -d "${RIIVOLUTION_DIR}" ]]; then
|
elif [[ ! -d "${RIIVOLUTION_DIR}" ]]; then
|
||||||
echo -e "please specify zip to use with --riivolution=<path>"
|
echo -e "please specify zip to use with --riivolution=<path>"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user