Skip to content

Commit aa08a5a

Browse files
author
patched.codes[bot]
committed
Patched patchwork/common/tools/bash_tool.py
1 parent 74dd568 commit aa08a5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patchwork/common/tools/bash_tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ 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
4949
)
5050
return result.stdout if result.returncode == 0 else f"Error: {result.stderr}"
5151
except subprocess.TimeoutExpired:
5252
return "Error: Command timed out after 60 seconds"
5353
except Exception as e:
5454
return f"Error: {str(e)}"
55+

0 commit comments

Comments
 (0)