summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMatthew Scott Krafczyk <krafczyk.matthew@gmail.com>2017-09-14 20:49:25 -0500
committerscheibelp <scheibel1@llnl.gov>2017-09-14 18:49:25 -0700
commit0bd838bd1127da8d5b38ded85460e6081d236a80 (patch)
tree7f67b19c443a0f03c5184aedc88f3987660c751f /share
parentead1982ede45d27fdcd2ef6183154cc364c69625 (diff)
downloadspack-0bd838bd1127da8d5b38ded85460e6081d236a80.tar.gz
spack-0bd838bd1127da8d5b38ded85460e6081d236a80.tar.bz2
spack-0bd838bd1127da8d5b38ded85460e6081d236a80.tar.xz
spack-0bd838bd1127da8d5b38ded85460e6081d236a80.zip
Remove echo statements from setup-env.sh
setup-env.sh adds the 'module' command to the user's environment if it is not defined and if there is a Spack installation of environment-modules available. This commit updates that logic to perform these checks and updates quietly.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/setup-env.sh11
1 files changed, 0 insertions, 11 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index 74820ecb93..4de530beba 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -230,18 +230,7 @@ if [ "${need_module}" = "yes" ]; then
export MODULE_PREFIX=${module_prefix}
_spack_pathadd PATH "${MODULE_PREFIX}/Modules/bin"
module() { eval `${MODULE_PREFIX}/Modules/bin/modulecmd ${SPACK_SHELL} $*`; }
- echo "INFO: Using spack managed module system."
- else
- echo "WARNING: A method for managing modules does not currently exist."
- echo ""
- echo "To resolve this you may either:"
- echo "1. Allow spack to handle this by running 'spack bootstrap'"
- echo " and sourcing this script again."
- echo "2. Install and activate a supported module managment engine manually"
- echo " Supported engines include: environment-modules and lmod"
fi;
-else
- echo "INFO: Using system available module system."
fi;
#