osdetection: ignore quotes in OS_ID (#593)

This commit is contained in:
Wagner 2018-10-23 12:16:36 +02:00 committed by Michael Boelen
parent c52edc49c7
commit c94b97bd9e
2 changed files with 2 additions and 1 deletions

View File

@ -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.
---------------------------------------------------------------------------------

View File

@ -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")