Procházet zdrojové kódy

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

Carlos Garcia před 6 roky
rodič
revize
121053b3cb
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      resources/install_dependencies.sh

+ 4 - 4
resources/install_dependencies.sh

@@ -90,7 +90,7 @@ git submodule update --init
 
 KERNEL=$(uname)
 
-if [ $KERNEL = 'Darwin' ]; then
+if [ "$KERNEL" = 'Darwin' ]; then
     echo -e "Detected OS:  macOS"
 
     which brew
@@ -102,16 +102,16 @@ if [ $KERNEL = 'Darwin' ]; then
     install_pkg_darwin
     install_pip
     exit 0
-elif [ $KERNEL = 'Linux' ]; then
+elif [ "$KERNEL" = 'Linux' ]; then
     # Kernel is Linux, check for supported distributions
     OS=$(awk '/DISTRIB_ID=/' /etc/*-release | sed 's/DISTRIB_ID=//' | tr '[:upper:]' '[:lower:]')
 
-    if [ $OS = 'arch' ]; then
+    if [ "$OS" = 'arch' ]; then
         echo -e "Detected OS: Arch Linux"
         install_pkg_arch
         install_pip
         exit 0
-    elif [ $OS = 'ubuntu' ]; then
+    elif [ "$OS" = 'ubuntu' ]; then
         echo -e "Detected OS: Ubuntu"
         install_pkg_ubuntu
         install_pip