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>2016-10-16 13:01:33 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-16 13:01:33 +0300
commitc0e63699e5d6206bc02bee5dd40ed7f813d3fc8f (patch)
tree936bab5b89b1480c5e49b15cb1ff60d2eb0460a2 /include/osdetection
parent7cc56cf4eab4a94fde921ee84e18c3bd6ed796b6 (diff)
Added 'lynis show os' command and detection improvement
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection
index 6e240ab1..3793473b 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -123,7 +123,7 @@
# Generic
if [ -e /etc/os-release ]; then
- OS_ID=$(grep "^ID=" /etc/os-release)
+ OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}')
if [ ! -z "${OS_ID}" ]; then
case ${OS_ID} in
"coreos")