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:
authorMichael Boelen <michael.boelen@cisofy.com>2017-08-31 18:04:17 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-08-31 18:04:17 +0300
commit769b1f49e2197cfd2d9246238455f54a0abb9c53 (patch)
tree6944799b25a82301a3823d2a02d6f9e65faddf2e
parent5aaf81c267ceb1f437454ca82cc1a8453e1077b9 (diff)
Detection of Linux Mint missed right field
-rw-r--r--include/osdetection2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection
index 0f4a7b24..11a1ff35 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -228,7 +228,7 @@
# Override for Linux Mint, as that is initially detected as Debian or Ubuntu
if [ -x /usr/bin/lsb_release ]; then
- FIND=$(lsb_release --id | awk '{ print $2 }')
+ FIND=$(lsb_release --id | awk -F: '{ print $2 }' | awk '{ print $1 }')
if [ "${FIND}" = "LinuxMint" ]; then
LINUX_VERSION="Linux Mint"
OS_VERSION=$(lsb_release --release | awk '{ print $2 }')