Update install.py
This commit is contained in:
@@ -21,8 +21,9 @@ def check_os():
|
|||||||
print(f"Unsupported OS family: {os_type}")
|
print(f"Unsupported OS family: {os_type}")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
is_debian = os.system('apt --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') >> 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__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user