Pmodules/modmanage:

- do not check PMODULES_ROOT if sub-command is 'init'
This commit is contained in:
2016-03-22 18:31:00 +01:00
parent 8706097494
commit 9842252a8b
+2 -2
View File
@@ -837,8 +837,8 @@ if [[ -z ${subcommand} ]]; then
usage
exit 1
fi
[[ -z "${PMODULES_ROOT}" ]] && \
std::die 1 "Error: No current module environment is configured!"
[[ "${subcommand}" != "subcommand_init" ]] && [[ -z "${PMODULES_ROOT}" ]] && \
std::die 1 "Error: No current module environment configured!"
$subcommand "${sargs[@]}"
# Local Variables: