From b3b218ad329df44bffd8c1f9083bb24f996dec7c Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 3 Jul 2022 20:20:19 +0800 Subject: [PATCH] Update install_dev.sh --- scripts/install_dev.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 805a2e828..8ac42e207 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -30,6 +30,9 @@ fi if [ ${_os} == "Darwin" ]; then 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 OSNAME='centos' 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 OSNAME='ubuntu' apt install -y wget zip unzip -elif grep -Eq "openSUSE" /etc/*-release; then - OSNAME='opensuse' - zypper refresh else OSNAME='unknow' fi