From 9842252a8b853043c0b7b22f18d69caf76376ebb Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 22 Mar 2016 18:31:00 +0100 Subject: [PATCH] Pmodules/modmanage: - do not check PMODULES_ROOT if sub-command is 'init' --- Pmodules/modmanage.bash.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pmodules/modmanage.bash.in b/Pmodules/modmanage.bash.in index ca24ec2..54884fe 100755 --- a/Pmodules/modmanage.bash.in +++ b/Pmodules/modmanage.bash.in @@ -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: