mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Ensure instructions
variable is always defined in cmd_run
method
This commit is contained in:
parent
23a9ade113
commit
c0a2b8b57c
1 changed files with 1 additions and 2 deletions
|
@ -652,6 +652,7 @@ class Commands:
|
||||||
def cmd_run(self, args, add_on_nonzero_exit=False):
|
def cmd_run(self, args, add_on_nonzero_exit=False):
|
||||||
"Run a shell command and optionally add the output to the chat (alias: !)"
|
"Run a shell command and optionally add the output to the chat (alias: !)"
|
||||||
combined_output = None
|
combined_output = None
|
||||||
|
instructions = None
|
||||||
try:
|
try:
|
||||||
result = subprocess.run(
|
result = subprocess.run(
|
||||||
args,
|
args,
|
||||||
|
@ -680,10 +681,8 @@ class Commands:
|
||||||
|
|
||||||
if response.lower() in ["yes", "y"]:
|
if response.lower() in ["yes", "y"]:
|
||||||
add = True
|
add = True
|
||||||
instructions = None
|
|
||||||
elif response.lower() in ["no", "n"]:
|
elif response.lower() in ["no", "n"]:
|
||||||
add = False
|
add = False
|
||||||
instructions = None
|
|
||||||
else:
|
else:
|
||||||
add = True
|
add = True
|
||||||
instructions = response
|
instructions = response
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue