scripts/Bootstrap/Pmodules/modulecmd.in:

- bugfix in sub-command use:
	- PSI_LOADEDFAMILIES was not updated
This commit is contained in:
2015-04-15 19:06:14 +02:00
parent e5c7aeb859
commit 90c6f1a602

View File

@@ -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