Update install.py

This commit is contained in:
2025-10-15 20:57:06 +00:00
parent ad168adec6
commit 2948d73259

View File

@@ -21,8 +21,9 @@ def check_os():
print(f"Unsupported OS family: {os_type}")
exit(1)
is_debian = os.system('apt --version > /dev/null') >> 8 == 0
is_rhel = os.system('dnf --version > /dev/null') >> 8 == 0
is_debian = os.system('apt --version > /dev/null 2>&1') >> 8 == 0
is_rhel = os.system('dnf --version > /dev/null 2>&1') >> 8 == 0
print(f'is_windows: {is_windows}, is_macos: {is_macos}, is_linux: {is_linux}, is_debian: {is_debian}, is_rhel: {is_rhel}')
if __name__ == "__main__":