Module unloading without check of command outcome.

This commit is contained in:
Christoph Niethammer 2012-07-02 11:14:25 +00:00
parent 8c5cb76bb0
commit 82f068a85a

View file

@ -11,6 +11,7 @@ failed_modules=()
TMP=${TMP:=/tmp}
logfile="check_modules.log"
module_load_logfile="$TMP/.module_load.log"
module_rm_logfile="$TMP/.module_rm.log"
echo "Module environment check, $(date)" | tee $logfile
@ -27,8 +28,10 @@ for m in $(module av -t 2>&1); do
failed_modules=(${failed_modules[@]} $m)
cat $module_load_logfile >> $logfile
fi
module rm $m > $module_rm_logfile 2>&1
module purge 2>/dev/null
rm -f $module_load_logfile
rm -f $module_rm_logfile
fi
done