From 9823f9f58fce55b39fba483a898cbd44893e2c65 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 3 Jul 2022 20:30:23 +0800 Subject: [PATCH] Update lib.sh --- scripts/lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lib.sh b/scripts/lib.sh index 27acceac7..481eb04dd 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -231,6 +231,8 @@ fi _os=`uname` if [ ${_os} == "Darwin" ]; then OSNAME='macos' +elif grep -Eq "openSUSE" /etc/*-release; then + OSNAME='opensuse' elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then OSNAME='centos' elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then