diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-31 22:04:07 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-07-31 22:04:07 +0300 |
commit | 6283b9a7ddf1de6f19a53ae566a7cee1c1eca66d (patch) | |
tree | 8fae51eecdd840ad3b7118c7364d9f5297cfefef | |
parent | 1d2405cdaad65d36565e6c08abcd370a240d88f3 (diff) |
Code cleanup
-rw-r--r-- | include/osdetection | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/osdetection b/include/osdetection index db776fdb..a94c1479 100644 --- a/include/osdetection +++ b/include/osdetection @@ -213,18 +213,18 @@ # Oracle Enterprise Linux FIND=$(grep "Enterprise Linux Enterprise Linux Server" /etc/redhat-release) if [ ! "${FIND}" = "" ]; then - LINUX_VERSION="Oracle Enterprise Linux"; - OS_FULLNAME=$(grep "Enterprise Linux" /etc/redhat-release); - OS_VERSION="${OS_FULLNAME}"; + LINUX_VERSION="Oracle Enterprise Linux" + OS_FULLNAME=$(grep "Enterprise Linux" /etc/redhat-release) + OS_VERSION="${OS_FULLNAME}" fi # Oracle Enterprise Linux if [ -e /etc/oracle-release ]; then FIND=$(grep "Oracle Linux Server" /etc/oracle-release) if [ ! "${FIND}" = "" ]; then - LINUX_VERSION="Oracle Enterprise Linux"; - OS_FULLNAME=$(grep "Oracle Linux" /etc/oracle-release); - OS_VERSION="${OS_FULLNAME}"; + LINUX_VERSION="Oracle Enterprise Linux" + OS_FULLNAME=$(grep "Oracle Linux" /etc/oracle-release) + OS_VERSION="${OS_FULLNAME}" fi fi @@ -232,9 +232,9 @@ if [ -e /etc/ovs-release ]; then FIND=$(grep "Oracle VM" /etc/ovs-release) if [ ! "${FIND}" = "" ]; then - LINUX_VERSION="Oracle VM Server"; - OS_FULLNAME=$(grep "Oracle VM" /etc/ovs-release); - OS_VERSION="${OS_FULLNAME}"; + LINUX_VERSION="Oracle VM Server" + OS_FULLNAME=$(grep "Oracle VM" /etc/ovs-release) + OS_VERSION="${OS_FULLNAME}" fi fi @@ -290,8 +290,8 @@ # SuSE if [ -e "/etc/SuSE-release" ]; then - OS_VERSION=$(head -n 1 /etc/SuSE-release); - LINUX_VERSION="SuSE"; + OS_VERSION=$(head -n 1 /etc/SuSE-release) + LINUX_VERSION="SuSE" fi # Turbo Linux |