From 815b5bd0e29de0e6ec263fce2f3f4e92a630688d Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Thu, 20 Jun 2013 18:39:11 +0200 Subject: [PATCH] small fix in check_riivolution_patch --- script.d/common.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/script.d/common.sh b/script.d/common.sh index 71f798b..77b7bc6 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -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,13 +75,11 @@ 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 - unzip ./${RIIVOLUTION_ZIP} >/dev/null - elif [[ ! -d ./${RIIVOLUTION_DIR} ]]; then - echo -e "please specify zip to use with --riivolution=" - exit 1 - fi + 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=" + exit 1 fi }