Check only specific module category, module or version.

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

View file

@ -13,9 +13,11 @@ logfile="check_modules.log"
module_load_logfile="$TMP/.module_load.log"
module_rm_logfile="$TMP/.module_rm.log"
moduleclass=$1
echo "Module environment check, $(date)" | tee $logfile
for m in $(module av -t 2>&1); do
for m in $(module av -t $moduleclass 2>&1); do
if [[ $m =~ ^[A-Za-z] ]]; then
m=$(echo $m | sed -e 's/(.*)//')
echo -n "Checking $m ... " | tee -a $logfile