Commit 8c418bbf authored by gsell's avatar gsell
Browse files

scripts/Bootstrap/Pmodules/modmanage.in:

- header of delete_module() fixed
- in function subcommand_sync():
    - use value of PMODULES_INSTALL_SOURCE for src_prefix if not
      specified on command line
parent 60859b9c
......@@ -176,10 +176,11 @@ sync_config() {
#
# Delete a module
#
# $1: module environment prefix
# $1: relative modulefile path
# $2: target prefix of Pmodule environment
#
delete_module() {
echo "Not implemented yet!"
echo "Not implemented yet!"
}
subcommand_init() {
......@@ -433,6 +434,7 @@ subcommand_sync() {
(
PSI_PREFIX="${dst_prefix}" check_pmodules_env || die 1 "Error: invalid destination modules environment!"
) || die 1 "Giving up..."
: ${src_prefix:=${PMODULES_INSTALL_SOURCE}}
if [[ -z "${src_prefix}" ]]; then
die 1 "Error: no source module environment was specified!"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment