if [[ -z $EM_PREFIX ]]; then EM_PREFIX_AFS='/afs/psi.ch/sys/@sys' EM_PREFIX_LOCAL='/opt/em' if [[ -d ${EM_PREFIX_LOCAL} ]]; then declare -x EM_PREFIX=${EM_PREFIX_LOCAL} elif [[ -d ${EM_PREFIX_AFS} ]]; then declare -x EM_PREFIX=${EM_PREFIX_AFS} else echo "Oops: cannot initialize Modules!" return 1 fi fi declare -x MODULES_VERSION='3.2.10'