From 2f48df6013f3d10bc25c89b89e03c620442a15c1 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 27 Sep 2023 15:22:44 +0800 Subject: [PATCH] update --- scripts/install.sh | 2 +- scripts/install_dev.sh | 2 +- scripts/update.sh | 2 +- scripts/update_dev.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index d4835ce10..b79e72c4f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -28,7 +28,7 @@ elif grep -Eqi "openSUSE" /etc/*-release; then zypper install cron wget curl zip unzip elif grep -Eqi "FreeBSD" /etc/*-release; then OSNAME='freebsd' -elif grep -Eq "EulerOS" /etc/*-release || grep -Eq "openEuler" /etc/*-release; then +elif grep -Eqi "EulerOS" /etc/*-release || grep -Eqi "openEuler" /etc/*-release; then OSNAME='euler' yum install -y wget curl zip unzip tar crontabs elif grep -Eqi "CentOS" /etc/issue || grep -Eqi "CentOS" /etc/*-release; then diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index a0b16d767..17ca7274e 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -32,7 +32,7 @@ elif grep -Eq "openSUSE" /etc/*-release; then zypper refresh elif grep -Eq "FreeBSD" /etc/*-release; then OSNAME='freebsd' -elif grep -Eq "EulerOS" /etc/*-release || grep -Eq "openEuler" /etc/*-release; then +elif grep -Eqi "EulerOS" /etc/*-release || grep -Eqi "openEuler" /etc/*-release; then OSNAME='euler' yum install -y wget curl zip unzip tar crontabs elif grep -Eqi "CentOS" /etc/issue || grep -Eqi "CentOS" /etc/*-release; then diff --git a/scripts/update.sh b/scripts/update.sh index 33c58ed19..9a8b7be25 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -25,7 +25,7 @@ if [ ${_os} == "Darwin" ]; then elif grep -Eqi "openSUSE" /etc/*-release; then OSNAME='opensuse' zypper refresh -elif grep -Eq "EulerOS" /etc/*-release || grep -Eq "openEuler" /etc/*-release; then +elif grep -Eqi "EulerOS" /etc/*-release || grep -Eqi "openEuler" /etc/*-release; then OSNAME='euler' elif grep -Eqi "FreeBSD" /etc/*-release; then OSNAME='freebsd' diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index b241a5598..5a40237d0 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -25,7 +25,7 @@ if [ ${_os} == "Darwin" ]; then elif grep -Eqi "openSUSE" /etc/*-release; then OSNAME='opensuse' zypper refresh -elif grep -Eq "EulerOS" /etc/*-release || grep -Eq "openEuler" /etc/*-release; then +elif grep -Eqi "EulerOS" /etc/*-release || grep -Eqi "openEuler" /etc/*-release; then OSNAME='euler' elif grep -Eqi "FreeBSD" /etc/*-release; then OSNAME='freebsd'