Update install_dev.sh

pull/119/head
midoks 3 years ago
parent 73ddcd1dc4
commit b3b218ad32
  1. 6
      scripts/install_dev.sh

@ -30,6 +30,9 @@ fi
if [ ${_os} == "Darwin" ]; then if [ ${_os} == "Darwin" ]; then
OSNAME='macos' OSNAME='macos'
elif grep -Eq "openSUSE" /etc/*-release; then
OSNAME='opensuse'
zypper refresh
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos' OSNAME='centos'
yum install -y wget zip unzip yum install -y wget zip unzip
@ -50,9 +53,6 @@ elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
OSNAME='ubuntu' OSNAME='ubuntu'
apt install -y wget zip unzip apt install -y wget zip unzip
elif grep -Eq "openSUSE" /etc/*-release; then
OSNAME='opensuse'
zypper refresh
else else
OSNAME='unknow' OSNAME='unknow'
fi fi

Loading…
Cancel
Save