Skip to content

Commit b6aa04e

Browse files
authored
Apply suggestion from @ocaisa
1 parent 0432805 commit b6aa04e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • init/lmod

init/lmod/sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ if [ -z "$__Init_EESSI_Default_Modules" ]; then
9898
# (in an interactive shell PS1 is likely unset, so let's only do this if it is set)
9999
if [ -n "$PS1" ]; then
100100
if [ "${EESSI_MODULE_UPDATE_PS1-}" = "0" ] ; then
101+
# For certainty, we now unset it to guarantee it is not picked up by the EESSI module
102+
# (this guarantees PS1 is not updated, even if it is exported externally to this script)
101103
unset EESSI_MODULE_UPDATE_PS1
102104
else
103105
export EESSI_MODULE_UPDATE_PS1=1

0 commit comments

Comments
 (0)