Skip to content

Commit

Permalink
Merge pull request #3099 from branfosj/20240128151901_new_pr_ansys
Browse files Browse the repository at this point in the history
replace `run_cmd` with `run_shell_cmd` in custom easyblock for ANSYS (`ansys.py`)
  • Loading branch information
boegel authored Jan 29, 2024
2 parents babb6af + 62d26f7 commit 208ae90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/a/ansys.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from easybuild.easyblocks.generic.packedbinary import PackedBinary
from easybuild.tools.build_log import EasyBuildError
from easybuild.tools.filetools import adjust_permissions
from easybuild.tools.run import run_cmd
from easybuild.tools.run import run_shell_cmd


class EB_ANSYS(PackedBinary):
Expand All @@ -59,7 +59,7 @@ def install_step(self):
# Sources (e.g. iso files) may drop the execute permissions
adjust_permissions('INSTALL', stat.S_IXUSR)
cmd = "./INSTALL -silent -install_dir %s -licserverinfo %s:%s" % (self.installdir, licport, licserv)
run_cmd(cmd, log_all=True, simple=True)
run_shell_cmd(cmd)

adjust_permissions(self.installdir, stat.S_IWOTH, add=False)

Expand Down

0 comments on commit 208ae90

Please sign in to comment.