mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 16:24:13 +02:00
Detection of Linux Mint missed right field
This commit is contained in:
parent
5aaf81c267
commit
769b1f49e2
@ -228,7 +228,7 @@
|
|||||||
|
|
||||||
# Override for Linux Mint, as that is initially detected as Debian or Ubuntu
|
# Override for Linux Mint, as that is initially detected as Debian or Ubuntu
|
||||||
if [ -x /usr/bin/lsb_release ]; then
|
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
|
if [ "${FIND}" = "LinuxMint" ]; then
|
||||||
LINUX_VERSION="Linux Mint"
|
LINUX_VERSION="Linux Mint"
|
||||||
OS_VERSION=$(lsb_release --release | awk '{ print $2 }')
|
OS_VERSION=$(lsb_release --release | awk '{ print $2 }')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user