definition of overlay types moved to libpmodule.bash

This commit is contained in:
2022-05-23 23:49:21 +02:00
parent 454ae6ec15
commit 2e131c1f2a
2 changed files with 7 additions and 5 deletions
+7 -1
View File
@@ -12,6 +12,11 @@ declare -A OverlayDict
declare -a OverlayList
declare -Ag Dir2OverlayMap
declare -r ol_normal='n'
declare -r ol_hiding='h'
declare -r ol_replacing='r'
# initialize help text of 'module --version'
Help['version']="
Pmodules @PMODULES_VERSION@ using Tcl Environment Modules
@@ -113,7 +118,8 @@ pm::read_config(){
". as \$item ireduce ({}; . *+ \$item) |.Overlays.${ol}" \
"${config_files[@]}" | \
sed 's/: /=/; s/\(.*\)/local \1/')
: ${type:=n}
: ${type:=${ol_normal}}
echo type=${type}
case ${type} in
${ol_normal} | ${ol_replacing} | ${ol_hiding} )
:
-4
View File
@@ -44,10 +44,6 @@ else
declare -r modulecmd="${libexecdir}/modulecmd.bin"
fi
declare -r ol_normal='n'
declare -r ol_hiding='h'
declare -r ol_replacing='r'
declare verbosity_lvl=${PMODULES_VERBOSITY:-'verbose'}
declare Shell=''