Skip to content

Commit

Permalink
fixed SC2115 for var expation in path for clean experiment util
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed Sep 26, 2024
1 parent 54ce216 commit cacde8c
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 @@ -172,7 +172,7 @@ function cleanup_experiment() {
HOMEDIR=$(grep 'export HOMEDIR=' "${PSLOT_PATH}/config.base" | cut -d'=' -f2 | tr -d '[:space:]')

Check notice

Code scanning / shellcheck

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). Note

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore).

Check notice

Code scanning / shellcheck

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore). Note

Consider invoking this command separately to avoid masking its return value (or use '|| true' to ignore).
ARCHIVEDIR="${HOMEDIR}/archive"

rm -rf "${ARCHIVEDIR}/${pslot}"
rm -Rf "${ARCHIVEDIR:?}/${pslot}"
rm -Rf "${PSLOT_PATH}"
rm -Rf "${PSLOT_PATH}/../COMROOT/${pslot}"
}
Expand Down

0 comments on commit cacde8c

Please sign in to comment.