Skip to content

Commit

Permalink
Fix unbound PS1 message from module-setup
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 NOAA-EMC#1780
  • Loading branch information
WalterKolczynski-NOAA committed Aug 8, 2023
1 parent fe97b19 commit 1a83e79
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 1a83e79

Please sign in to comment.