Check only specific module category, module or version.
This commit is contained in:
parent
82f068a85a
commit
af3a65e94f
1 changed files with 3 additions and 1 deletions
|
@ -13,9 +13,11 @@ logfile="check_modules.log"
|
||||||
module_load_logfile="$TMP/.module_load.log"
|
module_load_logfile="$TMP/.module_load.log"
|
||||||
module_rm_logfile="$TMP/.module_rm.log"
|
module_rm_logfile="$TMP/.module_rm.log"
|
||||||
|
|
||||||
|
moduleclass=$1
|
||||||
|
|
||||||
echo "Module environment check, $(date)" | tee $logfile
|
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
|
if [[ $m =~ ^[A-Za-z] ]]; then
|
||||||
m=$(echo $m | sed -e 's/(.*)//')
|
m=$(echo $m | sed -e 's/(.*)//')
|
||||||
echo -n "Checking $m ... " | tee -a $logfile
|
echo -n "Checking $m ... " | tee -a $logfile
|
||||||
|
|
Loading…
Reference in a new issue