From 8c418bbf7a9eef0b9528cadd8ae584d65f2f2e30 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 15 Apr 2015 16:13:51 +0200 Subject: [PATCH] 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 --- scripts/Bootstrap/Pmodules/modmanage.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Bootstrap/Pmodules/modmanage.in b/scripts/Bootstrap/Pmodules/modmanage.in index 582995a..fbe71c9 100755 --- a/scripts/Bootstrap/Pmodules/modmanage.in +++ b/scripts/Bootstrap/Pmodules/modmanage.in @@ -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