Skip to content

Commit

Permalink
replace use of run_cmd in OpenSSL wrapper easyblock with run_shell_cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Jun 5, 2024
1 parent 3cbe932 commit e29d315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/o/openssl_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ def get_openssl_bin_version(self, bin_name):
return None, None

cmd = "%s version" % bin_path
out, _ = run_cmd(cmd, simple=False, log_ok=False, trace=False)
res = run_shell_cmd(cmd, fail_on_error=False, hidden=True)

try:
bin_version = out.split(' ')[1]
bin_version = res.output.split(' ')[1]
except (AttributeError, IndexError):
raise EasyBuildError("Failed to check version of OpenSSL executable: %s", bin_path)
else:
Expand Down

0 comments on commit e29d315

Please sign in to comment.