small fix in check_riivolution_patch

This commit is contained in:
Christopher Roy Bratusek 2013-06-20 18:39:11 +02:00
parent 6945d69196
commit 815b5bd0e2

View File

@ -31,7 +31,7 @@ cleanup () {
ask_game () { ask_game () {
echo -e "************************************************ echo -e "************************************************
mknewersmb.sh patchimage.sh
Enter Letter for the Game you want to create: Enter Letter for the Game you want to create:
A NewerSMB A NewerSMB
@ -75,13 +75,11 @@ check_riivolution_patch () {
if [[ ${DOWNLOAD} ]]; then if [[ ${DOWNLOAD} ]]; then
wget ${DOWNLOAD_LINK} -O ./${RIIVOLUTION_ZIP} wget ${DOWNLOAD_LINK} -O ./${RIIVOLUTION_ZIP}
unzip ./${RIIVOLUTION_ZIP} >/dev/null unzip ./${RIIVOLUTION_ZIP} >/dev/null
elif [[ ! ${RIIVOLUTION}} ]]; then elif [[ -f ./${RIIVOLUTION_ZIP} && ! -d ./${RIIVOLUTION_DIR} ]]; then
if [[ -e ./${RIIVOLUTION_ZIP} ]]; 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
fi
fi fi
} }