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 several warning labels on screen
|
||||
- AUTH-9308 - More generic sulogin for systemd rescue.service
|
||||
- OS detection now ignores quotes for getting the OS ID.
|
||||
|
||||
---------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
|
||||
# Generic
|
||||
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
|
||||
case ${OS_ID} in
|
||||
"arch")
|
||||
|
|
Loading…
Reference in New Issue