From 7c93f4b64b60860a259fb5c74743e1462fbc0215 Mon Sep 17 00:00:00 2001 From: tmcguinness Date: Fri, 27 Sep 2024 14:24:47 +0000 Subject: [PATCH] fixed the evaluation of HOMDIR so that internal strification of env vars work in cleanup_experiment --- ci/scripts/utils/ci_utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/scripts/utils/ci_utils.sh b/ci/scripts/utils/ci_utils.sh index 0ad5ff7e5b..4a0ece7f4d 100755 --- a/ci/scripts/utils/ci_utils.sh +++ b/ci/scripts/utils/ci_utils.sh @@ -169,8 +169,8 @@ function cleanup_experiment() { PSLOT_PATH="$1" pslot=$(basename "${PSLOT_PATH}") - HOMEDIR=$(grep 'export HOMEDIR=' "${PSLOT_PATH}/config.base" | cut -d'=' -f2 | tr -d '[:space:]' || true) || true - ARCHIVEDIR="${HOMEDIR}/archive" + HOMEDIR=$(grep 'export HOMEDIR=' "${PSLOT_PATH}/config.base" | cut -d'=' -f2 | tr -d '[:space:]"' || true) || true + eval HOMEDIR="${HOMEDIR}" rm -Rf "${ARCHIVEDIR:?}/${pslot}" rm -Rf "${PSLOT_PATH}"