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: