Skip to content

Commit 8a833de

Browse files
committed
Tweak comments
1 parent e68268a commit 8a833de

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • init/lmod

init/lmod/sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ if [ -z "$__Init_EESSI_Default_Modules" ]; then
8282
# (has no effect except on Lmod itself, and compatible caches are still created/supported by EESSI)
8383
LMOD_EESSI_VERSION=$(printf '%s\n' "$EESSI_VERSION" | sed 's/2023\.06/2025\.06/')
8484

85-
# Let's attempt a purge of any loaded modules as any environment variables currently set will survive EESSI initialisation
86-
# (it's ok if the module command does not exist)
85+
# Let's attempt a purge of any loaded modules as any environment variables currently set will survive
86+
# EESSI initialisation (it's ok if the module command does not exist)
8787
if [ -z "$EESSI_NO_MODULE_PURGE_ON_INIT" ]; then
8888
module purge >/dev/null 2>&1 && echo "Modules purged before initialising EESSI"
8989
fi
@@ -101,7 +101,8 @@ if [ -z "$__Init_EESSI_Default_Modules" ]; then
101101
export EESSI_MODULE_UPDATE_PS1=1
102102
fi
103103

104-
# Figure out what shell we have
104+
# Figure out which shell was used to source this script, which we then use to source the corresponding
105+
# LMOD initialization script
105106
if [ -n "${BASH_VERSION-}" ]; then
106107
shell=bash
107108
elif [ -n "${ZSH_VERSION-}" ]; then
@@ -113,7 +114,8 @@ if [ -z "$__Init_EESSI_Default_Modules" ]; then
113114
fi
114115

115116
# Path to top-level module tree
116-
# - EESSI_EXTRA_MODULEPATH environment variable allows a site to append to MODULEPATH (lower priority than EESSI MODULEPATH)
117+
# - EESSI_EXTRA_MODULEPATH environment variable allows a site to append to MODULEPATH
118+
# (lower priority than EESSI MODULEPATH)
117119
export MODULEPATH="${EESSI_CVMFS_REPO}/init/modules${EESSI_EXTRA_MODULEPATH:+:$EESSI_EXTRA_MODULEPATH}"
118120
. "${EESSI_CVMFS_REPO}/versions/${LMOD_EESSI_VERSION}/compat/linux/$(uname -m)/usr/share/Lmod/init/${shell}"
119121
module --initial_load --no_redirect restore

0 commit comments

Comments
 (0)