Skip to content

Commit

Permalink
Fix unbound PS1 message from module-setup (#1781)
Browse files Browse the repository at this point in the history
Turns off unbound variable checking when calling `module reset` on
Hera and Orion to supress message about PS1 being unbound since
correcting it is outside the control of workflow.

Resolves #1780
  • Loading branch information
WalterKolczynski-NOAA authored Aug 9, 2023
1 parent ca7d242 commit ba566f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@ elif [[ ${MACHINE_ID} = hera* ]] ; then
source /apps/lmod/lmod/init/bash
fi
export LMOD_SYSTEM_DEFAULT_MODULES=contrib
set +u
module reset
set -u

elif [[ ${MACHINE_ID} = orion* ]] ; then
# We are on Orion
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /apps/lmod/init/bash
fi
export LMOD_SYSTEM_DEFAULT_MODULES=contrib
set +u
module reset
set -u

elif [[ ${MACHINE_ID} = s4* ]] ; then
# We are on SSEC Wisconsin S4
Expand Down

0 comments on commit ba566f5

Please sign in to comment.