Fix logic

This commit is contained in:
Mykola Grymalyuk
2021-10-04 12:11:54 -06:00
parent fdfbbf6ae1
commit 9184302c18

View File

@@ -226,11 +226,12 @@ def cls():
global clear global clear
if not clear: if not clear:
return return
if not check_recovery(): if check_cli_args() is not None:
os.system("cls" if os.name == "nt" else "clear") # Our GUI does not support clear screen
elif check_cli_args() is not None: if not check_recovery():
print("\u001Bc") os.system("cls" if os.name == "nt" else "clear")
# Our GUI does not support clear screen else:
print("\u001Bc")
def get_nvram(variable: str, uuid: str = None, *, decode: bool = False): def get_nvram(variable: str, uuid: str = None, *, decode: bool = False):
# TODO: Properly fix for El Capitan, which does not print the XML representation even though we say to # TODO: Properly fix for El Capitan, which does not print the XML representation even though we say to