Skip to content

Commit

Permalink
add support for parsing script
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Jun 12, 2024
1 parent 8d01863 commit 488b95b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jobspec/transformer/flux/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def write_job_script(self, command):
Given a bash, shell, or python command, write
into a script.
"""
command = command.strip()
match = re.match("#!/bin/(?P<executable>bash|sh|python)", command)
terms = match.groupdict()
tmpfile = utils.get_tmpfile(prefix="jobscript-")
Expand Down

0 comments on commit 488b95b

Please sign in to comment.