mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-14 10:03:56 +01:00
Pmodules/modulecmd.bahs.in:
- subcommand_use(): export MODULEPATH if adding a group, closes #25
This commit is contained in:
1 parent
df0ec7dae3
commit
453a9c92a1
1 file changed
+2
-2
@@ -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