Merge pull request #12 from warquys/main
More info for the Y/n and case insensitive
This commit is contained in:
@@ -155,11 +155,11 @@ if res_command.count("```",2):
|
|||||||
|
|
||||||
print("Command: " + colored(res_command, 'blue'))
|
print("Command: " + colored(res_command, 'blue'))
|
||||||
if yolo_safety_switch == True or ask_flag == True:
|
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()
|
yolo = input()
|
||||||
print()
|
print()
|
||||||
|
|
||||||
if yolo == "Y" or yolo == "":
|
if yolo.upper() == "Y" or yolo == "":
|
||||||
if shell == "powershell.exe":
|
if shell == "powershell.exe":
|
||||||
subprocess.run([shell, "/c", res_command], shell=False)
|
subprocess.run([shell, "/c", res_command], shell=False)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user