From e55aedbcfe8faaf21d4075084abcc5f03216bb8b Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 17 May 2014 21:53:37 +0200 Subject: [PATCH] fixup post-build cleanup --- script.d/mkwiimm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.d/mkwiimm.sh b/script.d/mkwiimm.sh index 7df0902..5bd3e43 100644 --- a/script.d/mkwiimm.sh +++ b/script.d/mkwiimm.sh @@ -82,6 +82,8 @@ build_mkwiimm () { ${UNP} ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} >/dev/null fi + XD=${PWD} + cd ${FILENAME/.7z} ln -s ${IMAGE} . @@ -114,7 +116,7 @@ PRIV_SAVEGAME=${MKWIIMM_OWN_SAVE}" > ${PWD}/config.def wiimmfi ${PWD}/RMC${REG}${ID}.wbfs echo "*** 10) cleaning up workdir" - cd .. + cd ${XD} rm -rf ${FILENAME/.7z} if [[ ${PATCHIMAGE_COVER_DOWNLOAD} == TRUE ]]; then