mirror of https://github.com/CISOfy/lynis.git
osdetection: ignore quotes in OS_ID (#593)
This commit is contained in:
parent
c52edc49c7
commit
c94b97bd9e
|
@ -9,6 +9,7 @@
|
||||||
### Changed
|
### Changed
|
||||||
- Changed several warning labels on screen
|
- Changed several warning labels on screen
|
||||||
- AUTH-9308 - More generic sulogin for systemd rescue.service
|
- AUTH-9308 - More generic sulogin for systemd rescue.service
|
||||||
|
- OS detection now ignores quotes for getting the OS ID.
|
||||||
|
|
||||||
---------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
|
|
||||||
# Generic
|
# Generic
|
||||||
if [ -e /etc/os-release ]; then
|
if [ -e /etc/os-release ]; then
|
||||||
OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}')
|
OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
|
||||||
if [ ! -z "${OS_ID}" ]; then
|
if [ ! -z "${OS_ID}" ]; then
|
||||||
case ${OS_ID} in
|
case ${OS_ID} in
|
||||||
"arch")
|
"arch")
|
||||||
|
|
Loading…
Reference in New Issue