From acbb318719ffb8c1ed0037dfa03a472bd4374507 Mon Sep 17 00:00:00 2001 From: warquys <64769541+warquys@users.noreply.github.com> Date: Fri, 17 Mar 2023 14:14:29 +0100 Subject: [PATCH] More info for the Y/n and case insensitive --- yolo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yolo.py b/yolo.py index 4b1518b..c792e5f 100755 --- a/yolo.py +++ b/yolo.py @@ -155,11 +155,11 @@ if res_command.count("```",2): print("Command: " + colored(res_command, 'blue')) if yolo_safety_switch == True or ask_flag == True: - print("Execute the command? Y/n ==> ", end = '') + print("Execute the command? Y/n (default Y) ==> ", end = '') yolo = input() print() -if yolo == "Y" or yolo == "": +if yolo.upper() == "Y" or yolo == "": if shell == "powershell.exe": subprocess.run([shell, "/c", res_command], shell=False) else: