From 4937b1d35e6a9076f76d1d090b118d69d3e03c04 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 27 Jan 2015 17:34:02 +0100 Subject: [PATCH] lib/libem.bash: do not source Pmodules profile while bootstrapping --- lib/libem.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libem.bash b/lib/libem.bash index a43d828..c4d15e4 100644 --- a/lib/libem.bash +++ b/lib/libem.bash @@ -4,7 +4,6 @@ PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin shopt -s expand_aliases -source "${PSI_PREFIX}/${PSI_CONFIG_DIR}/profile.bash" declare -r BUILDSCRIPT=$( cd $(dirname "$0") && pwd )/$(basename "$0") declare -rx ARGS="$@" @@ -152,6 +151,7 @@ fi # while bootstraping the module command is not yet available if [[ ${bootstrap} == no ]]; then + source "${PSI_PREFIX}/${PSI_CONFIG_DIR}/profile.bash" [[ -x ${MODULECMD} ]] || die 1 "${MODULECMD}: no such executable" module use unstable module purge