Update install.py

This commit is contained in:
2025-10-15 21:11:27 +00:00
parent 21b78f0369
commit 526c9b9d79

View File

@@ -7,8 +7,8 @@ is_linux = os_type == "linux"
is_macos = os_type == "darwin"
is_windows = os_type == "windows"
is_debian = os.system('apt --version > /dev/null 2>&1') >> 8 == 0
is_rhel = os.system('dnf --version > /dev/null 2>&1') >> 8 == 0
is_debian = is_linux and os.system('apt --version > /dev/null 2>&1') >> 8 == 0
is_rhel = is_linux and os.system('dnf --version > /dev/null 2>&1') >> 8 == 0
def check_os():
if is_linux or is_macos or is_windows: