mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-12-27 09:41:49 +01:00
common.sh: prevent re-download if RIIVOLUTION_ZIP already exists
This commit is contained in:
parent
1e37709df2
commit
e917557f2a
@ -75,8 +75,12 @@ check_input_image () {
|
||||
check_riivolution_patch () {
|
||||
|
||||
if [[ ${DOWNLOAD} ]]; then
|
||||
wget ${DOWNLOAD_LINK} -O ${RIIVOLUTION_ZIP}
|
||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
||||
if [[ ! -f ${RIIVOLUTION_ZIP} ]]; then
|
||||
wget ${DOWNLOAD_LINK} -O ${RIIVOLUTION_ZIP}
|
||||
fi
|
||||
if [[ ! -d "${RIIVOLUTION_DIR}" ]]; then
|
||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
||||
fi
|
||||
elif [[ -f ${RIIVOLUTION_ZIP} && ! -d "${RIIVOLUTION_DIR}" ]]; then
|
||||
unzip ${RIIVOLUTION_ZIP} >/dev/null
|
||||
elif [[ ! -d "${RIIVOLUTION_DIR}" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user