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.
This commit is contained in:
parent
ead1982ede
commit
0bd838bd11
1 changed files with 0 additions and 11 deletions
|
@ -230,18 +230,7 @@ if [ "${need_module}" = "yes" ]; then
|
||||||
export MODULE_PREFIX=${module_prefix}
|
export MODULE_PREFIX=${module_prefix}
|
||||||
_spack_pathadd PATH "${MODULE_PREFIX}/Modules/bin"
|
_spack_pathadd PATH "${MODULE_PREFIX}/Modules/bin"
|
||||||
module() { eval `${MODULE_PREFIX}/Modules/bin/modulecmd ${SPACK_SHELL} $*`; }
|
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;
|
fi;
|
||||||
else
|
|
||||||
echo "INFO: Using system available module system."
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue