From 2948d732594d4dfd45fbac6f202e637ef33210a5 Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 15 Oct 2025 20:57:06 +0000 Subject: [PATCH] Update install.py --- install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index bc14878..d68085f 100644 --- a/install.py +++ b/install.py @@ -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__":