Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/osdetection b/include/osdetection
index a6c18bb5..95f2e014 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -139,7 +139,7 @@
# Generic
if [ -e /etc/os-release ]; then
OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
- if [ ! -z "${OS_ID}" ]; then
+ if [ -n "${OS_ID}" ]; then
case ${OS_ID} in
"arch")
LINUX_VERSION="Arch Linux"
@@ -513,14 +513,14 @@
EOL=255
EOL_DATE=""
EOL_TIMESTAMP=0
- if [ ! -z "${OS_VERSION}" ]; then
+ if [ -n "${OS_VERSION}" ]; then
if [ -f "${DBDIR}/software-eol.db" ]; then
FIND="${OS_FULLNAME}"
EOL_TIMESTAMP=$(awk -v value="${FIND}" -F: '{if ($1=="os" && value ~ $2){print $4}}' ${DBDIR}/software-eol.db | head -n 1)
- if [ ! -z "${EOL_TIMESTAMP}" ]; then
+ if [ -n "${EOL_TIMESTAMP}" ]; then
EOL_DATE=$(awk -v value="${FIND}" -F: '{if ($1=="os" && value ~ $2){print $3}}' ${DBDIR}/software-eol.db | head -n 1)
NOW=$(date "+%s")
- if [ ! -z "${NOW}" ]; then
+ if [ -n "${NOW}" ]; then
if [ ${NOW} -gt ${EOL_TIMESTAMP} ]; then
EOL=1
else