mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 11:19:39 +02:00
Pmodules/modmanage:
- do not check PMODULES_ROOT if sub-command is 'init'
This commit is contained 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:
|
||||
|
||||
Reference in New Issue
Block a user