Skip to content

Commit 8d71fca

Browse files
authored
make sure type module in run during a dry run
1 parent 5e01424 commit 8d71fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def check_module_function(self, allow_mismatch=False, regex=None):
308308
output, exit_code = None, EasyBuildExit.FAIL_SYSTEM_CHECK
309309
else:
310310
cmd = "type module"
311-
res = run_shell_cmd(cmd, fail_on_error=False, in_dry_run=False, hidden=True, output_file=False)
311+
res = run_shell_cmd(cmd, fail_on_error=False, in_dry_run=True, hidden=True, output_file=False)
312312
output, exit_code = res.output, res.exit_code
313313

314314
if regex is None:

0 commit comments

Comments
 (0)