Skip to content

Commit fd8ae82

Browse files
author
Robert McLay
committed
Do not convert LMOD_PKG from /opt/apps/lmod/$VERSION to /opt/apps/lmod/lmod if the link exists
1 parent b1066b6 commit fd8ae82

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

README.new

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ Lmod 7.7+
6969
(7.7.35) issue #374: convert ~ to $HOME internally. This allows C-shell users to use ~
7070
inside a modulefile and have it work when unloading.
7171
issue #375: Support for is-loaded and is-avail added.
72-
72+
(7.7.36) Do not convert LMOD_PKG from /opt/apps/lmod/7.7.35 to /opt/apps/lmod/lmod if the link exists.
73+
7374

init/bash.in

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ fi
1616
[ -n "${__lmod_vx}" ] && set +$__lmod_vx
1717

1818
export LMOD_PKG=@PKGV@
19-
if [ "${LMOD_PKG##*/}" != "lmod" -a -L $LMOD_PKG/../lmod ]; then
20-
LMOD_PKG=${LMOD_PKG%/*}/lmod
21-
fi
2219

2320
if [ -n "${__lmod_vx}" ]; then
2421
echo "Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for this output ($LMOD_PKG/init/bash)"

init/csh.in

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#!/bin/csh
22
setenv LMOD_PKG "@PKGV@"
3-
set lastdir = `echo $LMOD_PKG | sed -e 's|.*/||'`
4-
if ( $lastdir != "lmod" && -f $LMOD_PKG/../lmod ) then
5-
set dir = `echo $LMOD_PKG | sed -e 's|/[^/]*$|/|g'`
6-
setenv LMOD_PKG "$dir/lmod"
7-
endif
83
setenv LMOD_CMD "$LMOD_PKG/libexec/lmod"
94
setenv LMOD_DIR "$LMOD_PKG/libexec"
105
setenv MODULESHOME "$LMOD_PKG"

0 commit comments

Comments
 (0)