From 8936430724d3f184dfe3707340d308e130e10a77 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 7 Aug 2016 11:25:49 +0200 Subject: [PATCH] fixup --patch cmd flag --- scripts/common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/common.sh b/scripts/common.sh index 0b07b0b..54aa2ce 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -512,7 +512,7 @@ while [[ $xcount -lt $pcount ]]; do --riivolution=* ) RIIVOLUTION="${1/*=}" - if [[ -e "${RIIVOLUTION}" ]]; then + if [[ -f "${RIIVOLUTION}" ]]; then "${UNP}" "${RIIVOLUTION}" >/dev/null else echo -e "Riivolution patch ${RIIVOLUTION} not found." @@ -522,10 +522,10 @@ while [[ $xcount -lt $pcount ]]; do --patch=* ) PATCH="${1/*=}" - if [[ -e "${PATCH}" ]]; then - ${UNP} "${PATCH}" >/dev/null + if [[ -f "${PATCH}" ]]; then + PATCH="${PATCH}" else - echo -e "PATCH patch ${PATCH} not found." + echo -e "IPS/PPF patch ${PATCH} not found." exit 21 fi ;;