From c94b97bd9e2ce706c77fe83e5924b781c402cc76 Mon Sep 17 00:00:00 2001 From: Wagner Date: Tue, 23 Oct 2018 12:16:36 +0200 Subject: [PATCH] osdetection: ignore quotes in OS_ID (#593) --- CHANGELOG.md | 1 + include/osdetection | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65e1e93d..a632c363 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. --------------------------------------------------------------------------------- diff --git a/include/osdetection b/include/osdetection index 4b8d29be..55c5ff9c 100644 --- a/include/osdetection +++ b/include/osdetection @@ -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")