Skip to content

Commit

Permalink
needed the OR truch for var assigment via actions in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed Sep 26, 2024
1 parent cacde8c commit c8a10a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/scripts/utils/ci_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function cleanup_experiment() {

PSLOT_PATH="$1"
pslot=$(basename "${PSLOT_PATH}")
HOMEDIR=$(grep 'export HOMEDIR=' "${PSLOT_PATH}/config.base" | cut -d'=' -f2 | tr -d '[:space:]')
HOMEDIR=$(grep 'export HOMEDIR=' "${PSLOT_PATH}/config.base" | cut -d'=' -f2 | tr -d '[:space:]' || true) || true
ARCHIVEDIR="${HOMEDIR}/archive"

rm -Rf "${ARCHIVEDIR:?}/${pslot}"
Expand Down

0 comments on commit c8a10a9

Please sign in to comment.