check for authorise 'y' without trailing space

This commit is contained in:
PierreBastiani
2023-04-11 14:57:29 +01:00
parent d7b747600d
commit dbb78b636f

View File

@@ -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 -"):