libem.bash: purge modules only if module is available

This commit is contained in:
2014-06-23 14:01:38 +02:00
parent cf252330e0
commit d4fe0f59bd

View File

@@ -152,7 +152,9 @@ declare -x LIBRARY_PATH
declare -x LD_LIBRARY_PATH
declare -x DYLD_LIBRARY_PATH
module purge
if typeset -f module > /dev/null 2>&1 ; then
module purge
fi
if [[ $DEBUG_ON ]]; then
trap 'echo "$BASH_COMMAND"' DEBUG