mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02:00
modulecmd: use function get_module_prefix() in subcommand_load()
This commit is contained in:
@@ -612,8 +612,8 @@ subcommand_load() {
|
||||
continue
|
||||
fi
|
||||
|
||||
local prefix=$("${modulecmd}" 'bash' 'show' "${current_modulefile}" 2>&1 | \
|
||||
awk '/_PREFIX |_HOME / {print $3; exit}')
|
||||
local prefix=''
|
||||
get_module_prefix prefix "${current_modulefile}"
|
||||
if [[ -n ${prefix} ]]; then
|
||||
test -r "${prefix}/.info" && cat "$_" 1>&2
|
||||
test -r "${prefix}/.dependencies" && load_dependencies "$_"
|
||||
|
||||
Reference in New Issue
Block a user