From a91fa13b7932b322ea6955c68cb170080b428fe5 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 21 Sep 2015 16:24:31 +0200 Subject: [PATCH] compile_pmodules: - move modulecmd.tcl only if build was successfull --- compile_pmodules.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile_pmodules.sh b/compile_pmodules.sh index b8181ed..25283f5 100755 --- a/compile_pmodules.sh +++ b/compile_pmodules.sh @@ -46,8 +46,8 @@ if [[ ! -e "${PMODULES_HOME}/bin/tclsh" ]]; then build Tcl "${TCL_VERSION}" fi -if [[ ! -e "${PMODULES_HOME}/bin/modulecmd.tcl" ]]; then - build Modules "${MODULES_VERSION}" +if [[ ! -e "${PMODULES_HOME}/libexec/modulecmd.tcl" ]]; then + build Modules "${MODULES_VERSION}" && \ mv -v "${PMODULES_HOME}/bin/modulecmd" "${PMODULES_HOME}/libexec/modulecmd.tcl" fi echo "Done..."