mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 14:04:27 +01:00
check for authorise 'y' without trailing space
This commit is contained in:
@@ -348,7 +348,7 @@ while True:
|
|||||||
flush=True)
|
flush=True)
|
||||||
while True:
|
while True:
|
||||||
console_input = utils.clean_input(Fore.MAGENTA + "Input:" + Style.RESET_ALL)
|
console_input = utils.clean_input(Fore.MAGENTA + "Input:" + Style.RESET_ALL)
|
||||||
if console_input.lower() == "y":
|
if console_input.lower().rstrip() == "y":
|
||||||
user_input = "GENERATE NEXT COMMAND JSON"
|
user_input = "GENERATE NEXT COMMAND JSON"
|
||||||
break
|
break
|
||||||
elif console_input.lower().startswith("y -"):
|
elif console_input.lower().startswith("y -"):
|
||||||
|
|||||||
Reference in New Issue
Block a user