From 9cad927973871308414d805b2223b222f39f9ec7 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Mon, 29 Aug 2016 22:06:56 +0200 Subject: [PATCH] use CURDIR for Tokyo Mirage Sessions FE so that it does not get deleted in batch mode --- scripts/tokyomiragesessionsfe.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tokyomiragesessionsfe.sh b/scripts/tokyomiragesessionsfe.sh index 4994672..3e7fa33 100644 --- a/scripts/tokyomiragesessionsfe.sh +++ b/scripts/tokyomiragesessionsfe.sh @@ -114,7 +114,8 @@ menu () { patch () { - BUILD_DIR="${PWD}"/TMSxFE-Restoration-Build + cd "${CURDIR}" + BUILD_DIR="${CURDIR}"/TMSxFE-Restoration-Build if [[ -d ${BUILD_DIR} ]]; then echo -e "\nremoving old files"