From f44f777660510ced3b322e0896a3eff8acd349bb Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 23 Oct 2021 03:23:57 -0400 Subject: [PATCH] Update install.sh --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 1f8f15d..853090b 100644 --- a/install.sh +++ b/install.sh @@ -140,17 +140,17 @@ os_check(){ output "Unsupported CentOS version. Only CentOS Stream 8 is supported." exit 2 fi - elif [ "$lsb_dist" = "rocky" ]; then - if [ "$dist_version" != "8" ]; then - output "Unsupported RockyLinux version. Only RockyLinux 8 is supported." - exit 2 - fi elif [ "$lsb_dist" = "rhel" ]; then if [ $dist_version != "8" ]; then output "Unsupported RHEL version. Only RHEL 8 is supported." exit 2 fi - elif [ "$lsb_dist" != "ubuntu" ] && [ "$lsb_dist" != "debian" ] && [ "$lsb_dist" != "centos" ] && [ "$lsb_dist" != "rocky" ] && [ "$lsb_dist" != "rhel" ]; then + elif [ "$lsb_dist" = "rocky" ]; then + if [ "$dist_version" != "8" ]; then + output "Unsupported RockyLinux version. Only RockyLinux 8 is supported." + exit 2 + fi + elif [ "$lsb_dist" != "ubuntu" ] && [ "$lsb_dist" != "debian" ] && [ "$lsb_dist" != "fedora" ] && [ "$lsb_dist" != "centos" ] && [ "$lsb_dist" != "rhel" ] && [ "$lsb_dist" != "rocky" ]; then output "Unsupported operating system." output "" output "Supported OS:"