Skip to content

Commit

Permalink
fixed the evaluation of HOMDIR so that internal strification of env v…
Browse files Browse the repository at this point in the history
…ars work in cleanup_experiment
  • Loading branch information
TerryMcGuinness-NOAA committed Sep 27, 2024
1 parent c8a10a9 commit 7c93f4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/utils/ci_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 7c93f4b

Please sign in to comment.