mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 03:09:40 +02:00
modulecmd: initialize MANPATH if not set
This commit is contained in:
@@ -82,13 +82,14 @@ declare -A Subcommands=()
|
||||
declare -A Options=()
|
||||
declare -A Help=()
|
||||
|
||||
# these variables must exist
|
||||
# these variables must exist. Under some conditions Lmod unset them.
|
||||
if [[ ! -v LOADEDMODULES ]] || [[ ! -v _LMFILES_ ]]; then
|
||||
LOADEDMODULES=''
|
||||
_LMFILES_=''
|
||||
fi
|
||||
[[ -v MODULEPATH ]] || MODULEPATH=''
|
||||
[[ -v PMODULES_ENV ]] || PMODULES_ENV=''
|
||||
[[ -v MANPATH ]] || MANPATH=''
|
||||
|
||||
# initialize help text of 'module --version'
|
||||
Help['version']="
|
||||
|
||||
Reference in New Issue
Block a user