From ad168adec6703acf5d83fec5131a2f303ed49614 Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 15 Oct 2025 20:54:30 +0000 Subject: [PATCH] Update install.py --- install.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.py b/install.py index ff8aa92..bc14878 100644 --- a/install.py +++ b/install.py @@ -5,6 +5,9 @@ is_linux = False is_macos = False is_windows = False +is_debian = False +is_rhel = False + def check_os(): os_type = platform.uname().system.lower() @@ -17,7 +20,11 @@ def check_os(): else: 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 if __name__ == "__main__": check_os() + print(f'is_windows: {is_windows}, is_macos: {is_macos}, is_linux: {is_linux}, is_debian: {is_debian}, is_rhel: {is_rhel}') \ No newline at end of file