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 () {
echo -e "************************************************
mknewersmb.sh
patchimage.sh
Enter Letter for the Game you want to create:
A NewerSMB
@ -75,14 +75,12 @@ check_riivolution_patch () {
if [[ ${DOWNLOAD} ]]; then
wget ${DOWNLOAD_LINK} -O ./${RIIVOLUTION_ZIP}
unzip ./${RIIVOLUTION_ZIP} >/dev/null
elif [[ ! ${RIIVOLUTION}} ]]; then
if [[ -e ./${RIIVOLUTION_ZIP} ]]; then
elif [[ -f ./${RIIVOLUTION_ZIP} && ! -d ./${RIIVOLUTION_DIR} ]]; then
unzip ./${RIIVOLUTION_ZIP} >/dev/null
elif [[ ! -d ./${RIIVOLUTION_DIR} ]]; then
echo -e "please specify zip to use with --riivolution=<path>"
exit 1
fi
fi
}