Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #68 from HeMan/cmd_parsing_update
Browse files Browse the repository at this point in the history
Better handling of the arbitrary command string.
  • Loading branch information
NilesDev authored Mar 23, 2020
2 parents 891dc2c + f0f7cb4 commit 18b7640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobbergate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def _wrapper(**kvargs):
file = outputfile.write(jinjatemplate.render(data=data))
outputfile.flush()
if "cmd_command" in data.keys():
subprocess.run(data["cmd_command"].split(), stdout=True, check=True)
subprocess.run(data["cmd_command"], shell=True)
return file

return _wrapper
Expand Down

0 comments on commit 18b7640

Please sign in to comment.