libem.bash: purge modules only if module is available

This commit is contained in:
gsell committed 2014-06-23 14:01:38 +02:00
1 parent cf252330e0
commit d4fe0f59bd
1 file changed
+3 -1
+3 -1
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