Skip to content

Commit 834b868

Browse files
author
patched.codes[bot]
committed
Patched patchwork/common/tools/bash_tool.py
1 parent c953072 commit 834b868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patchwork/common/tools/bash_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def execute(
4545

4646
try:
4747
result = subprocess.run(
48-
command, shell=True, cwd=self.path, capture_output=True, text=True, timeout=60 # Add timeout for safety
48+
command.split(), shell=False, cwd=self.path, capture_output=True, text=True, timeout=60 # Add timeout for safety
4949
)
5050
return result.stdout if result.returncode == 0 else f"Error: {result.stderr}"
5151
except subprocess.TimeoutExpired:

0 commit comments

Comments
 (0)