Browse Source

Fixed OS detection for Antergos

Stefan Schmidt 6 years ago
parent
commit
1d6e9e4604
1 changed files with 12 additions and 9 deletions
  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