From 20cb30ba51e01e388dbcab013728ef6970bb32c0 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 3 Sep 2022 21:24:26 +0800 Subject: [PATCH] Update update_dev.sh --- scripts/update_dev.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index fd9d14b94..a729faab1 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -22,8 +22,6 @@ elif grep -Eq "openSUSE" /etc/*-release; then zypper refresh elif grep -Eq "FreeBSD" /etc/*-release; then OSNAME='freebsd' -elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then - OSNAME='arch' elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then OSNAME='centos' yum install -y wget zip unzip @@ -36,6 +34,9 @@ elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then elif grep -Eqi "AlmaLinux" /etc/issue || grep -Eq "AlmaLinux" /etc/*-release; then OSNAME='alma' yum install -y wget zip unzip +elif grep -Eqi "Amazon Linux" /etc/issue || grep -Eq "Amazon Linux" /etc/*-release; then + OSNAME='amazon' + yum install -y wget zip unzip elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then OSNAME='debian' apt install -y wget zip unzip