From f059ec0998b94d68ecefc852ae0fd147e49026e0 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Thu, 6 Jun 2019 14:33:03 -0400 Subject: [PATCH] Stop using cd .. , cd .. and change to the exact directory --- builddep.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builddep.sh b/builddep.sh index 251ae76d0..6ffa3d706 100755 --- a/builddep.sh +++ b/builddep.sh @@ -277,15 +277,16 @@ fi chgrp -R -h $SYSGRP * chmod -R g+w * -echo "===> Building the tarball..." +TARBALL_WORKING_DIR="${XCATCOREDIR}/${DESTDIR}" +echo "===> Building the tarball at: ${TARBALL_WORKING_DIR} ..." # # Want to stay one level above xcat-dep so that the script # can rsync the directory up to xcat.org. # # DO NOT CHANGE DIRECTORY AFTER THIS POINT!! # -cd .. -pwd + +cd ${TARBALL_WORKING_DIR} verbosetar="" if [ -n "$VERBOSEMODE" ]; then