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 check_cli_args() is not None:
# Our GUI does not support clear screen
if not check_recovery(): if not check_recovery():
os.system("cls" if os.name == "nt" else "clear") os.system("cls" if os.name == "nt" else "clear")
elif check_cli_args() is not None: else:
print("\u001Bc") print("\u001Bc")
# Our GUI does not support clear screen
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