diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-10-16 13:01:33 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-10-16 13:01:33 +0300 |
commit | c0e63699e5d6206bc02bee5dd40ed7f813d3fc8f (patch) | |
tree | 936bab5b89b1480c5e49b15cb1ff60d2eb0460a2 /include/osdetection | |
parent | 7cc56cf4eab4a94fde921ee84e18c3bd6ed796b6 (diff) |
Added 'lynis show os' command and detection improvement
Diffstat (limited to 'include/osdetection')
-rw-r--r-- | include/osdetection | 2 |
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") |