Module unloading without check of command outcome.
This commit is contained in:
parent
8c5cb76bb0
commit
82f068a85a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue