File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,13 +370,13 @@ load_xtb_modules ()
370370 # Fail if there are no modules given (don't make any assumptions).
371371 (( ${# load_modules[*]} == 0 )) && fatal " No modules to load."
372372 # Fail if the module command is not available.
373- ( command -v module 2>&1 ) || fatal " Command 'module' not available."
373+ ( command -v module & > /dev/null ) || fatal " Command 'module' not available."
374374 # Since commited to only supporting proper module systems, failing to load
375375 # a module will produce an exit status > 0. This will be trapped and the script
376376 # will exit. (On the rwth cluster it is 'Lmod' - good choice.)
377377 # To be on the safe side, there should be the option to purge modules.
378378 if [[ " $purge_modules " =~ ^[Tt]([Rr]([Uu]([Ee])? )? )? $ ]] ; then
379- modules purge & > >( debug_trace) || fatal " Failed to purge modules."
379+ module purge & > >( debug_trace) || fatal " Failed to purge modules."
380380 fi
381381 # Load the modules sequentially:
382382 local mod
You can’t perform that action at this time.
0 commit comments