Skip to content

Commit 8b79e62

Browse files
author
patched.codes[bot]
committed
Patched patchwork/steps/CallShell/CallShell.py
1 parent 5bafb63 commit 8b79e62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patchwork/steps/CallShell/CallShell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def __parse_env_text(env_text: str) -> dict[str, str]:
4646
return env
4747

4848
def run(self) -> dict:
49-
p = subprocess.run(self.script, shell=True, capture_output=True, text=True, cwd=self.working_dir, env=self.env)
49+
command_args = shlex.split(self.script)
50+
p = subprocess.run(command_args, shell=False, capture_output=True, text=True, cwd=self.working_dir, env=self.env)
5051
try:
5152
p.check_returncode()
5253
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)