mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 10:29:37 +02:00
Pmodules/modulecmd.bahs.in:
- subcommand_use(): export MODULEPATH if adding a group, closes #25
This commit is contained in:
@@ -1310,8 +1310,6 @@ subcommand_use() {
|
||||
shift
|
||||
done
|
||||
|
||||
declare -g PMODULES_USED_GROUPS
|
||||
pbuild::export_env ${g_shell} PMODULES_USED_GROUPS
|
||||
for dir in "${dirs_to_add[@]}"; do
|
||||
if [[ ${opt_append} == yes ]]; then
|
||||
std::append_path MODULEPATH "${dir}"
|
||||
@@ -1319,6 +1317,8 @@ subcommand_use() {
|
||||
std::prepend_path MODULEPATH "${dir}"
|
||||
fi
|
||||
done
|
||||
declare -g PMODULES_USED_GROUPS
|
||||
pbuild::export_env ${g_shell} PMODULES_USED_GROUPS MODULEPATH
|
||||
}
|
||||
|
||||
local opts=''
|
||||
|
||||
Reference in New Issue
Block a user