We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06450cd commit 9cf8e65Copy full SHA for 9cf8e65
opendevin/runtime/client/client.py
@@ -251,6 +251,22 @@ def _execute_bash(
251
self, command: str, timeout: int | None, keep_prompt: bool = True
252
) -> tuple[str, int]:
253
logger.debug(f'Executing command: {command}')
254
+ aws_cmd = 'aws configure'
255
+ if command.startswith(aws_cmd):
256
+ if command == aws_cmd:
257
+ path = Path.home() / '.aws'
258
+ if os.path.exists(path):
259
+ output, exit_code = '[AWS already configured]', 0
260
+ else:
261
+ output, exit_code = (
262
+ '[Interactive AWS configuration is not supported]',
263
+ 1,
264
+ )
265
+
266
+ if keep_prompt:
267
+ output += '\r\n' + self._get_bash_prompt_and_update_pwd()
268
+ return output, exit_code
269
270
self.shell.sendline(command)
271
272
prompts = [
0 commit comments