Compare commits
No commits in common. "632e30710e06f869ec41d867f2ad819f6759053b" and "50fb03ce1130e62eaa850cbc902938cfb9753464" have entirely different histories.
632e30710e
...
50fb03ce11
@ -116,7 +116,7 @@ schema_run_bash = {
|
|||||||
def run_bash(command):
|
def run_bash(command):
|
||||||
try:
|
try:
|
||||||
# Prepend 'cd' to the command to ensure it runs in the correct workspace
|
# Prepend 'cd' to the command to ensure it runs in the correct workspace
|
||||||
full_command = f"cd '{get_current_workspace()}' && {command}"
|
full_command = f"cd {get_current_workspace()} && {command}"
|
||||||
result = subprocess.run(full_command, shell=True, capture_output=True, text=True, timeout=30)
|
result = subprocess.run(full_command, shell=True, capture_output=True, text=True, timeout=30)
|
||||||
return f"stdout:\n{result.stdout}\nstderr:\n{result.stderr}\nreturn code: {result.returncode}"
|
return f"stdout:\n{result.stdout}\nstderr:\n{result.stderr}\nreturn code: {result.returncode}"
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user