Commit 90c6f1a6 authored by gsell's avatar gsell
Browse files

scripts/Bootstrap/Pmodules/modulecmd.in:

- bugfix in sub-command use:
	- PSI_LOADEDFAMILIES was not updated
parent e5c7aeb8
......@@ -1029,6 +1029,7 @@ subcommand_use() {
if (( ${HIERARCHY_DEPTHS[$arg]} != 0 )); then
die 3 "${CMD} ${0##_}: cannot add family ${arg} to module path"
fi
append_path PSI_LOADEDFAMILIES "${arg}"
dirs_to_add+=( ${modulepath_root}/${arg} )
elif [[ ${arg} =~ ^${modulepath_root} ]]; then
die 3 "${CMD} ${0##_}: illegal directory: ${arg}"
......@@ -1043,6 +1044,7 @@ subcommand_use() {
shift
done
echo "export PSI_USED_RELEASES=${PSI_USED_RELEASES}"
echo "export PSI_LOADEDFAMILIES=${PSI_LOADEDFAMILIES}"
[[ ${#dirs_to_add[@]} == 0 ]] && return
for dir in "${dirs_to_add[@]}"; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment