Browse Source

Merge branch 'detection_antergos' of stefan.schmidt/ID2T-toolkit into master

Jens Keim 6 năm trước cách đây
mục cha
commit
f1e18d6980
1 tập tin đã thay đổi với 12 bổ sung9 xóa
  1. 12 9
      resources/install_dependencies.sh

+ 12 - 9
resources/install_dependencies.sh

@@ -108,15 +108,18 @@ elif [ "$KERNEL" = 'Linux' ]; then
         OS_LIKE=$(lsb_release -si | tr '[:upper:]' '[:lower:]')
     fi
 
-    if [ "$OS_LIKE" = 'archlinux' ]; then
-        echo -e "Detected OS: Arch Linux"
-        install_pkg_arch
-        exit 0
-    elif [ "$OS_LIKE" = 'debian' ]; then
-        echo -e "Detected OS: Debian"
-        install_pkg_ubuntu
-        exit 0
-    fi
+    case $OS_LIKE in
+        archlinux|arch)
+            echo -e "Detected OS: Arch Linux"
+            install_pkg_arch
+            exit 0
+            ;;
+        debian)
+            echo -e "Detected OS: Debian"
+            install_pkg_ubuntu
+            exit 0
+            ;;
+    esac
 fi
 echo -e "Your OS is not supported by this script, please make sure to install the dependencies manually"
 exit 0