Skip to content

Commit

Permalink
force use of bash for Allwmake scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Nov 26, 2024
1 parent 57c0eae commit 2a963bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/o/openfoam.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def build_step(self):
cleancmd = "wcleanAll"

# make directly in install directory
cmd_tmpl = "%(precmd)s && %(cleancmd)s && %(prebuildopts)s %(makecmd)s" % {
cmd_tmpl = "%(precmd)s && %(cleancmd)s && %(prebuildopts)s bash %(makecmd)s" % {
'precmd': precmd,
'cleancmd': cleancmd,
'prebuildopts': self.cfg['prebuildopts'],
Expand Down Expand Up @@ -371,7 +371,7 @@ def build_step(self):

if self.looseversion >= LooseVersion('2406'):
# Also build the plugins
cmd += ' && %s %s -log' % (self.cfg['prebuildopts'],
cmd += ' && %s bash %s -log' % (self.cfg['prebuildopts'],
os.path.join(self.builddir, self.openfoamdir, 'Allwmake-plugins'))

run_cmd(cmd_tmpl % cmd, log_all=True, simple=True, log_output=True)
Expand Down

0 comments on commit 2a963bb

Please sign in to comment.