From 9ab31d623870ce50e2525877d966c8eff66550c4 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Thu, 6 Jun 2019 13:46:14 -0400 Subject: [PATCH] Remove dev files if present --- builddep.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builddep.sh b/builddep.sh index 793002d35..cedc1f25c 100755 --- a/builddep.sh +++ b/builddep.sh @@ -175,13 +175,17 @@ if [ "$OSNAME" != "AIX" ]; then # Modify xcat-dep.repo files to point to the correct place echo "===> Modifying the xcat-dep.repo files to point to the correct location..." - # make sure the mklocalrepo.sh script has execute permission (to ensure quality control) echo "===> Making sure that the mklocalrepo.sh file contains execute permission ..." ls -ltr ${SCRIPTPATH}/${WORKING_TARGET_DIR}/mklocalrepo.sh if [[ ! -x "${SCRIPTPATH}/${WORKING_TARGET_DIR}/mklocalrepo.sh" ]]; then echo "==> Adding execute ..." chmod +x ${SCRIPTPATH}/${WORKING_TARGET_DIR}/mklocalrepo.sh fi + + echo "==> Checking if 'replacelinks' is in the xcat-deps, removing if there ..." + if [[ -f ${SCRIPTPATH}/${WORKING_TARGET_DIR}/replacelinks ]]; then + rm -f ${SCRIPTPATH}/${WORKING_TARGET_DIR}/replacelinks + fi fi if [ "$OSNAME" == "AIX" ]; then