From 526c9b9d7949fa4b91470dfef2b7c11ed51dda0c Mon Sep 17 00:00:00 2001 From: jonathan Date: Wed, 15 Oct 2025 21:11:27 +0000 Subject: [PATCH] Update install.py --- install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index 8f21ff4..a73deb8 100644 --- a/install.py +++ b/install.py @@ -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: