Update getos.sh

pull/621/head
Mr Chen 10 months ago
parent 0440d0f286
commit 70eb911e58
  1. 2
      scripts/getos.sh

@ -10,6 +10,8 @@ elif grep -Eq "openSUSE" /etc/*-release; then
OSNAME='opensuse' OSNAME='opensuse'
elif grep -Eq "FreeBSD" /etc/*-release; then elif grep -Eq "FreeBSD" /etc/*-release; then
OSNAME='freebsd' OSNAME='freebsd'
elif grep -Eqi "EulerOS" /etc/*-release || grep -Eqi "openEuler" /etc/*-release; then
OSNAME='euler'
elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then
OSNAME='arch' OSNAME='arch'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then

Loading…
Cancel
Save