Skip to content

Commit

Permalink
forgot to clean up EXPDIR replacement in cleanup_experment
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed Oct 24, 2024
1 parent d54bd8d commit 85f6369
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/scripts/utils/ci_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ function cleanup_experiment() {
local ARCDIR

PSLOT_PATH="$1"

Check warning

Code scanning / shellcheck

PSLOT_PATH appears unused. Verify use (or export if used externally). Warning

PSLOT_PATH appears unused. Verify use (or export if used externally).
pslot=$(basename "${PSLOT_PATH}")
ARCDIR=$(grep 'export ARCDIR=' "${PSLOT_PATH}/config.base" | cut -d'=' -f2 | tr -d '[:space:]"' | envsubst || true) || true
pslot=$(basename "${EXPDIR}")
ARCDIR=$(grep 'export ARCDIR=' "${EXPDIR}/config.base" | cut -d'=' -f2 | tr -d '[:space:]"' | envsubst || true) || true

rm -Rf "${ARCDIR:?}"
rm -Rf "${PSLOT_PATH}"
rm -Rf "${PSLOT_PATH}/../COMROOT/${pslot}"
rm -Rf "${EXPDIR}"
rm -Rf "${EXPDIR}/../COMROOT/${pslot}"
}

0 comments on commit 85f6369

Please sign in to comment.