From dbb78b636f8c91a651bfbea5ebdd06e4df6cae55 Mon Sep 17 00:00:00 2001 From: PierreBastiani Date: Tue, 11 Apr 2023 14:57:29 +0100 Subject: [PATCH] check for authorise 'y' without trailing space --- scripts/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.py b/scripts/main.py index d84e15085..87a8f4fab 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -348,7 +348,7 @@ while True: flush=True) while True: 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" break elif console_input.lower().startswith("y -"):