Pmodules/modulecmd.bash.in:
- bugfix in 'module use' with out args
This commit is contained in:
1 parent
5b066ec182
commit
cd810ab48f
1 file changed
+6
-2
@@ -1156,9 +1156,13 @@ subcommand_use() {
|
||||
subcommand_generic1 use ${subcommand_switches} "${dir}"
|
||||
done
|
||||
}
|
||||
|
||||
local opts=''
|
||||
opts=$(pmodules::get_options -- '' "$@") || subcommand_help_unuse
|
||||
eval set -- "${opts}"
|
||||
|
||||
if [[ $# == 0 ]]; then
|
||||
std::print_info
|
||||
if [[ $# == 1 ]]; then
|
||||
print_info
|
||||
else
|
||||
use "$@"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user